Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 43 lines 939 B view raw
1{ stdenv 2, fetchFromGitHub 3, buildPythonPackage 4, pytestCheckHook 5, pytest 6, inflection 7, factory_boy 8, pytestcache 9, pytestcov 10, pytestpep8 11, mock 12}: 13 14buildPythonPackage rec { 15 pname = "pytest-factoryboy"; 16 version = "2.0.3"; 17 18 src = fetchFromGitHub { 19 owner = "pytest-dev"; 20 repo = "pytest-factoryboy"; 21 rev = version; 22 sha256 = "0m1snyybq2k51khlydhisq300vzys897vdbsicph628iran950hn"; 23 }; 24 25 propagatedBuildInputs = [ factory_boy inflection pytest ]; 26 27 # The project uses tox, which we can't. So we simply run pytest manually. 28 checkInputs = [ 29 mock 30 pytestCheckHook 31 pytestcache 32 pytestcov 33 pytestpep8 34 ]; 35 pytestFlagsArray = [ "--ignore=docs" ]; 36 37 meta = with stdenv.lib; { 38 description = "Integration of factory_boy into the pytest runner."; 39 homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/"; 40 maintainers = with maintainers; [ winpat ]; 41 license = licenses.mit; 42 }; 43}