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