Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, python 5, six 6, dateutil 7, ipaddress 8, mock 9}: 10 11buildPythonPackage rec { 12 pname = "fake-factory"; 13 version = "9999.9.9"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "f5bd18deb22ad8cb4402513c025877bc6b50de58902d686b6b21ba8981dce260"; 18 }; 19 20 propagatedBuildInputs = [ six dateutil ipaddress mock ]; 21 22 # fake-factory is depreciated and single test will always fail 23 doCheck = false; 24 25 checkPhase = '' 26 ${python.interpreter} -m unittest faker.tests 27 ''; 28 29 meta = with stdenv.lib; { 30 description = "A Python package that generates fake data for you"; 31 homepage = "https://pypi.python.org/pypi/fake-factory"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ lovek323 ]; 34 platforms = platforms.unix; 35 }; 36 37}