tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.pytest-click: init at 0.3
Chris Ostrouchov
6 years ago
9e2ff240
32689074
+42
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
pytest-click
default.nix
top-level
python-packages.nix
+40
pkgs/development/python-modules/pytest-click/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
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
737
pytesseract = callPackage ../development/python-modules/pytesseract { };
738
0
0
739
pytest-mypy = callPackage ../development/python-modules/pytest-mypy { };
740
741
pytest-pylint = callPackage ../development/python-modules/pytest-pylint { };
···
736
737
pytesseract = callPackage ../development/python-modules/pytesseract { };
738
739
+
pytest-click = callPackage ../development/python-modules/pytest-click { };
740
+
741
pytest-mypy = callPackage ../development/python-modules/pytest-mypy { };
742
743
pytest-pylint = callPackage ../development/python-modules/pytest-pylint { };