pythonPackages.factory_boy: refactor move to python-modules
This commit is contained in:
parent
09d6b372d6
commit
f8465776dd
24
pkgs/development/python-modules/factory_boy/default.nix
Normal file
24
pkgs/development/python-modules/factory_boy/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user