blob: 3252011450d33501bf6b55630162f00256b73f33 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, buildPythonPackage
, fetchPypi
, rednose
, six
, mock
, isPyPy
, pythonOlder
, fetchpatch
}:
buildPythonPackage rec {
pname = "sure";
version = "2.0.0";
format = "setuptools";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "34ae88c846046742ef074036bf311dc90ab152b7bc09c342b281cebf676727a2";
};
patches = [
# https://github.com/gabrielfalcao/sure/issues/169
(fetchpatch {
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/055baa81cd987e566de62a5657513937521a90d4/trunk/python310.diff";
hash = "sha256-BKylV8xpTOuO/X4hzZKpoIcAQcdAK0kXYENRad7AGPc=";
})
];
propagatedBuildInputs = [
six
mock
];
nativeCheckInputs = [
rednose
];
doCheck = pythonOlder "3.11";
pythonImportsCheck = [
"sure"
];
meta = with lib; {
description = "Utility belt for automated testing";
homepage = "https://sure.readthedocs.io/";
changelog = "https://github.com/gabrielfalcao/sure/blob/${version}/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}
|