diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2016-05-18 17:39:35 +0200 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2016-05-18 17:39:35 +0200 |
commit | c444c402af5c0faf49d5e328de4fcacf17e08ba2 (patch) | |
tree | 5fe458f44f66c0dafc429fdef3846217f5d2ceb8 /pkgs | |
parent | 35c0d1aba8fa0d90366e6e2817c6638bfd0a9e6f (diff) | |
parent | 3abd1fc374386e7ad500a821046b4007f96ba3bb (diff) |
Merge pull request #15497 from edugomez/factoryboy
factoryboy: init at 2.6.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d1d307c8ce62a..c238039d8df4b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5901,11 +5901,19 @@ in modules // { }; fake_factory = buildPythonPackage rec { - name = "fake-factory-0.2"; + name = "fake-factory-${version}"; + version = "0.5.7"; + src = pkgs.fetchurl { - url = mirror://pypi/f/fake-factory/fake-factory-0.2.tar.gz; - sha256 = "0qdmk8p4anrj9mf95dh9v7bkhv1pz69hvhlw380kj4iz7b44b6zn"; + url = "mirror://pypi/f/fake-factory/${name}.tar.gz"; + sha256 = "1chmarnrdzn4r017n8qlic0m0bbnhw04s3hkwribjvm3mqpb6pa0"; }; + + 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; @@ -5915,6 +5923,24 @@ in modules // { }; }; + 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; + }; + }; + Fabric = buildPythonPackage rec { name = "Fabric-${version}"; version = "1.10.2"; |