Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.pytest-click: init at 0.3

+42
+40
pkgs/development/python-modules/pytest-click/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pytest 5 + , click 6 + , pytestcov 7 + , isPy27 8 + , mock 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "pytest-click"; 13 + version = "0.3"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "Stranger6667"; 17 + repo = "pytest-click"; 18 + rev = version; 19 + sha256 = "1cd15anw8d4rq6qs03j6ag38199rqw7vp0w0w0fm41mvdzr0lwvz"; 20 + }; 21 + 22 + postConfigure = '' 23 + substituteInPlace setup.py \ 24 + --replace "mock==1.0.1" "mock" 25 + ''; 26 + 27 + propagatedBuildInputs = [ 28 + pytest 29 + click 30 + ]; 31 + 32 + checkInputs = [ pytestcov ] ++ lib.optionals isPy27 [ mock ]; 33 + 34 + meta = with lib; { 35 + description = "pytest plugin for click"; 36 + homepage = https://github.com/Stranger6667/pytest-click; 37 + license = licenses.mit; 38 + maintainers = [ maintainers.costrouc ]; 39 + }; 40 + }
+2
pkgs/top-level/python-packages.nix
··· 736 736 737 737 pytesseract = callPackage ../development/python-modules/pytesseract { }; 738 738 739 + pytest-click = callPackage ../development/python-modules/pytest-click { }; 740 + 739 741 pytest-mypy = callPackage ../development/python-modules/pytest-mypy { }; 740 742 741 743 pytest-pylint = callPackage ../development/python-modules/pytest-pylint { };