2017-10-01 13:08:24 +02:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
|
|
|
, semantic-version, boto3, flask, docutils, requests
|
2017-08-29 04:11:44 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tiros";
|
|
|
|
name = "${pname}-${version}";
|
2017-11-24 20:36:20 +01:00
|
|
|
version = "1.0.40";
|
2017-08-29 04:11:44 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-11-24 20:36:20 +01:00
|
|
|
sha256 = "841ca13564e3cddfd1404cbc60b3433bcc1e31c2753ecea20d0ad68173b80169";
|
2017-08-29 04:11:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -E -i "s/'([[:alnum:].-_]+)[=><]{2}[[:digit:].]*'/'\\1'/g" setup.py
|
|
|
|
sed -i "s/'datetime',//" setup.py
|
|
|
|
'';
|
|
|
|
|
2017-10-01 13:08:24 +02:00
|
|
|
propagatedBuildInputs = [ semantic-version boto3 flask docutils requests ];
|
2017-08-29 04:11:44 +02:00
|
|
|
}
|