pythonPackages.fake_factory: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 15:40:57 -04:00 committed by Frederik Rietdijk
parent 9ffd373ff1
commit 09d6b372d6
2 changed files with 34 additions and 22 deletions

View File

@ -0,0 +1,33 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, python
, six
, dateutil
, ipaddress
, mock
}:
buildPythonPackage rec {
pname = "fake-factory";
version = "0.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "09sgk0kylsshs64a1xsz3qr187sbnqrbf4z8k3dgsy32lsgyffv2";
};
propagatedBuildInputs = [ six dateutil ipaddress mock ];
checkPhase = ''
${python.interpreter} -m unittest faker.tests
'';
meta = with stdenv.lib; {
description = "A Python package that generates fake data for you";
homepage = https://pypi.python.org/pypi/fake-factory;
license = licenses.mit;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}

View File

@ -1754,28 +1754,7 @@ in {
faker = callPackage ../development/python-modules/faker { }; faker = callPackage ../development/python-modules/faker { };
fake_factory = buildPythonPackage rec { fake_factory = callPackage ../development/python-modules/fake_factory { };
name = "fake-factory-${version}";
version = "0.6.0";
src = pkgs.fetchurl {
url = "mirror://pypi/f/fake-factory/${name}.tar.gz";
sha256 = "09sgk0kylsshs64a1xsz3qr187sbnqrbf4z8k3dgsy32lsgyffv2";
};
propagatedBuildInputs = with self; [ six dateutil ipaddress mock ];
checkPhase = ''
${python.interpreter} -m unittest faker.tests
'';
meta = {
description = "A Python package that generates fake data for you";
homepage = https://pypi.python.org/pypi/fake-factory;
license = licenses.mit;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
};
factory_boy = buildPythonPackage rec { factory_boy = buildPythonPackage rec {
name = "factory_boy-${version}"; name = "factory_boy-${version}";