diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/freezegun/0.3.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/freezegun/0.3.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/freezegun/0.3.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/freezegun/0.3.nix new file mode 100644 index 000000000000..219fc180b225 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/freezegun/0.3.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy27 +, dateutil +, six +, mock +, nose +, pytest +}: + +buildPythonPackage rec { + pname = "freezegun"; + version = "0.3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "02ly89wwn0plcw8clkkzvxaw6zlpm8qyqpm9x2mfw4a0vppb4ngf"; + }; + + propagatedBuildInputs = [ dateutil six ]; + checkInputs = [ mock nose pytest ]; + # contains python3 specific code + doCheck = !isPy27; + + meta = with stdenv.lib; { + description = "FreezeGun: Let your Python tests travel through time"; + homepage = "https://github.com/spulec/freezegun"; + license = licenses.asl20; + }; + +} |