diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-04-12 09:46:09 -0400 |
---|---|---|
committer | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-04-12 10:02:22 -0400 |
commit | 9e2ff240da9ab1ba1be363dd67e291642d644bef (patch) | |
tree | cf3777af6fd61466f8c4d32adb109e641d9bc72b /pkgs/development/python-modules/pytest-click | |
parent | 32689074105fbb3ccedd97e1811ed346c9076322 (diff) |
pythonPackages.pytest-click: init at 0.3
Diffstat (limited to 'pkgs/development/python-modules/pytest-click')
-rw-r--r-- | pkgs/development/python-modules/pytest-click/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-click/default.nix b/pkgs/development/python-modules/pytest-click/default.nix new file mode 100644 index 0000000000000..e20ebc77ad1dd --- /dev/null +++ b/pkgs/development/python-modules/pytest-click/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest +, click +, pytestcov +, isPy27 +, mock +}: + +buildPythonPackage rec { + pname = "pytest-click"; + version = "0.3"; + + src = fetchFromGitHub { + owner = "Stranger6667"; + repo = "pytest-click"; + rev = version; + sha256 = "1cd15anw8d4rq6qs03j6ag38199rqw7vp0w0w0fm41mvdzr0lwvz"; + }; + + postConfigure = '' + substituteInPlace setup.py \ + --replace "mock==1.0.1" "mock" + ''; + + propagatedBuildInputs = [ + pytest + click + ]; + + checkInputs = [ pytestcov ] ++ lib.optionals isPy27 [ mock ]; + + meta = with lib; { + description = "pytest plugin for click"; + homepage = https://github.com/Stranger6667/pytest-click; + license = licenses.mit; + maintainers = [ maintainers.costrouc ]; + }; +} |