2019-07-31 22:31:10 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, flask
|
2020-01-19 13:14:23 +00:00
|
|
|
, flask-compress
|
2019-07-31 22:31:10 +01:00
|
|
|
, flask-cors
|
2020-01-19 13:14:23 +00:00
|
|
|
, flask-sockets
|
2020-09-15 19:24:21 +01:00
|
|
|
, imageio
|
2019-07-31 22:31:10 +01:00
|
|
|
, numpy
|
2020-01-19 13:14:23 +00:00
|
|
|
, scipy
|
2019-07-31 22:31:10 +01:00
|
|
|
, pillow
|
|
|
|
, gevent
|
|
|
|
, wget
|
|
|
|
, six
|
|
|
|
, colorcet
|
2020-01-19 13:14:23 +00:00
|
|
|
, unidecode
|
|
|
|
, urllib3
|
2019-07-31 22:31:10 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "runway-python";
|
2020-12-25 16:24:35 +00:00
|
|
|
version = "0.6.1";
|
2019-07-31 22:31:10 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-25 16:24:35 +00:00
|
|
|
sha256 = "66cf1517dd817bf6db3792608920274f964dd0ced8dabecd925b8bc17aa95740";
|
2019-07-31 22:31:10 +01:00
|
|
|
};
|
|
|
|
|
2020-09-15 19:24:21 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
colorcet
|
|
|
|
flask
|
|
|
|
flask-compress
|
|
|
|
flask-cors
|
|
|
|
flask-sockets
|
|
|
|
gevent
|
|
|
|
imageio
|
|
|
|
numpy
|
|
|
|
pillow
|
|
|
|
scipy
|
|
|
|
six
|
|
|
|
unidecode
|
|
|
|
urllib3
|
|
|
|
wget
|
|
|
|
];
|
2019-07-31 22:31:10 +01:00
|
|
|
|
|
|
|
# tests are not packaged in the released tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-01-19 13:14:23 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"runway"
|
|
|
|
];
|
|
|
|
|
2019-07-31 22:31:10 +01:00
|
|
|
meta = {
|
|
|
|
description = "Helper library for creating Runway models";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/runwayml/model-sdk";
|
2019-07-31 22:31:10 +01:00
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|