Skip to content

Commit 18dc280

Browse files
r-ryantmwegank
authored andcommitted
python3Packages.testresources: 2.0.1 -> 2.0.2
1 parent dd082b8 commit 18dc280

File tree

1 file changed

+24
-16
lines changed
  • pkgs/development/python-modules/testresources

1 file changed

+24
-16
lines changed
Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,50 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
55
setuptools,
66
pbr,
77
fixtures,
88
testtools,
9-
unittestCheckHook,
9+
pytestCheckHook,
1010
}:
1111

1212
buildPythonPackage rec {
1313
pname = "testresources";
14-
version = "2.0.1";
14+
version = "2.0.2";
1515
pyproject = true;
1616

17-
src = fetchPypi {
18-
inherit pname version;
19-
sha256 = "ee9d1982154a1e212d4e4bac6b610800bfb558e4fb853572a827bc14a96e4417";
17+
src = fetchFromGitHub {
18+
owner = "testing-cabal";
19+
repo = "testresources";
20+
tag = version;
21+
hash = "sha256-cdZObOgBOUxYg4IGUUMb6arlpb6NTU7w+EW700LKH4Y=";
2022
};
2123

22-
postPatch = ''
23-
substituteInPlace testresources/tests/test_resourced_test_case.py \
24-
--replace "failIf" "assertFalse"
25-
'';
26-
27-
nativeBuildInputs = [ setuptools ];
24+
build-system = [
25+
setuptools
26+
pbr
27+
];
2828

29-
propagatedBuildInputs = [ pbr ];
29+
dependencies = [
30+
pbr
31+
];
3032

3133
nativeCheckInputs = [
3234
fixtures
3335
testtools
34-
unittestCheckHook
36+
pytestCheckHook
3537
];
3638

37-
meta = with lib; {
39+
env.PBR_VERSION = version;
40+
41+
meta = {
3842
description = "Pyunit extension for managing expensive test resources";
3943
homepage = "https://launchpad.net/testresources";
40-
license = licenses.bsd2;
44+
license = with lib.licenses; [
45+
asl20 # or
46+
bsd3
47+
];
48+
maintainers = with lib.maintainers; [ nickcao ];
4149
};
4250
}

0 commit comments

Comments
 (0)