tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.pretend: enable tests
Fabian Affolter
3 years ago
de6f14d3
3c746671
+23
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pretend
default.nix
+23
-6
pkgs/development/python-modules/pretend/default.nix
···
1
1
-
{ lib, buildPythonPackage, fetchPypi }:
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, pytestCheckHook
5
5
+
, pythonOlder
6
6
+
}:
2
7
3
8
buildPythonPackage rec {
4
9
pname = "pretend";
5
10
version = "1.0.9";
11
11
+
format = "setuptools";
6
12
7
7
-
src = fetchPypi {
8
8
-
inherit pname version;
9
9
-
sha256 = "c90eb810cde8ebb06dafcb8796f9a95228ce796531bc806e794c2f4649aa1b10";
13
13
+
disabled = pythonOlder "3.7";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "alex";
17
17
+
repo = pname;
18
18
+
rev = "v${version}";
19
19
+
hash = "sha256-OqMfeIMFNBBLq6ejR3uOCIHZ9aA4zew7iefVlAsy1JQ=";
10
20
};
11
21
12
12
-
# No tests in archive
13
13
-
doCheck = false;
22
22
+
checkInputs = [
23
23
+
pytestCheckHook
24
24
+
];
25
25
+
26
26
+
pythonImportsCheck = [
27
27
+
"pretend"
28
28
+
];
14
29
15
30
meta = with lib; {
31
31
+
description = "Module for stubbing";
16
32
homepage = "https://github.com/alex/pretend";
17
33
license = licenses.bsd3;
34
34
+
maintainers = with maintainers; [ ];
18
35
};
19
36
}