1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 17:25:11 +00:00
nixpkgs/pkgs/development/python-modules/tiros/default.nix

22 lines
549 B
Nix
Raw Normal View History

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