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