pythonPackages.factory_boy: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 15:43:20 -04:00 committed by Frederik Rietdijk
parent 09d6b372d6
commit f8465776dd
2 changed files with 25 additions and 17 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, fake_factory
}:
buildPythonPackage rec {
pname = "factory_boy";
version = "2.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "0a21f8kq917fj8xgmyp6gy8vcrlzzgwn80qas0d76h3vjbdy0bdq";
};
propagatedBuildInputs = [ fake_factory ];
meta = with stdenv.lib; {
description = "A Python package to create factories for complex objects";
homepage = https://github.com/rbarrois/factory_boy;
license = licenses.mit;
};
}

View File

@ -1756,23 +1756,7 @@ in {
fake_factory = callPackage ../development/python-modules/fake_factory { };
factory_boy = buildPythonPackage rec {
name = "factory_boy-${version}";
version = "2.6.1";
src = pkgs.fetchurl {
url = "mirror://pypi/f/factory_boy/${name}.tar.gz";
sha256 = "0a21f8kq917fj8xgmyp6gy8vcrlzzgwn80qas0d76h3vjbdy0bdq";
};
propagatedBuildInputs = with self; [ fake_factory ];
meta = {
description = "A Python package to create factories for complex objects";
homepage = https://github.com/rbarrois/factory_boy;
license = licenses.mit;
};
};
factory_boy = callPackage ../development/python-modules/factory_boy { };
Fabric = callPackage ../development/python-modules/Fabric { };