Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 30 lines 611 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, faker 6, python 7, ipaddress 8}: 9 10buildPythonPackage rec { 11 pname = "factory_boy"; 12 version = "2.12.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0w53hjgag6ad5i2vmrys8ysk54agsqvgbjy9lg8g0d8pi9h8vx7s"; 17 }; 18 19 propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ]; 20 21 # tests not included with pypi release 22 doCheck = false; 23 24 meta = with lib; { 25 description = "A Python package to create factories for complex objects"; 26 homepage = https://github.com/rbarrois/factory_boy; 27 license = licenses.mit; 28 }; 29 30}