pythonPackages.freezegun: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 11:12:03 -04:00
parent a7dac03113
commit f80a8fe3ec
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 29 additions and 20 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, dateutil
, six
, mock
, nose
}:
buildPythonPackage rec {
pname = "freezegun";
version = "0.3.8";
src = fetchPypi {
inherit pname version;
sha256 = "1sf38d3ibv1jhhvr52x7dhrsiyqk1hm165dfv8w8wh0fhmgxg151";
};
propagatedBuildInputs = [ dateutil six ];
buildInputs = [ mock nose ];
meta = with stdenv.lib; {
description = "FreezeGun: Let your Python tests travel through time";
homepage = "https://github.com/spulec/freezegun";
license = licenses.asl20;
};
}

View File

@ -3926,26 +3926,7 @@ in {
svgwrite = callPackage ../development/python-modules/svgwrite { };
freezegun = buildPythonPackage rec {
name = "freezegun-${version}";
version = "0.3.8";
src = pkgs.fetchurl {
url = "mirror://pypi/f/freezegun/freezegun-${version}.tar.gz";
sha256 = "1sf38d3ibv1jhhvr52x7dhrsiyqk1hm165dfv8w8wh0fhmgxg151";
};
propagatedBuildInputs = with self; [
dateutil six
];
buildInputs = [ self.mock self.nose ];
meta = with stdenv.lib; {
description = "FreezeGun: Let your Python tests travel through time";
homepage = "https://github.com/spulec/freezegun";
license = licenses.asl20;
};
};
freezegun = callPackage ../development/python-modules/freezegun { };
sybil = callPackage ../development/python-modules/sybil { };