blob: fd1ec9d946a2256e0af1dd84fc937c8d809dd7f7 (
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
55
56
57
58
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "wheel-filename";
version = "1.4.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jwodder";
repo = pname;
rev = "v${version}";
hash = "sha256-M3XGHG733X5qKuMS6mvFSFHYOwWPaBMXw+w0eYo6ByE=";
};
patches = [
(fetchpatch {
name = "remove-wheel-dependency-constraint.patch";
url = "https://github.com/jwodder/wheel-filename/commit/11cfa57c8a32fa2a52fb5fe537859997bb642e75.patch";
hash = "sha256-ssePCVlJuHPJpPyFET3FnnWRlslLnZbnfn42g52yVN4=";
})
];
nativeBuildInputs = [
setuptools
wheel
];
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace tox.ini \
--replace " --cov=wheel_filename --no-cov-on-fail" ""
'';
pythonImportsCheck = [
"wheel_filename"
];
meta = with lib; {
description = "Parse wheel filenames";
mainProgram = "wheel-filename";
homepage = "https://github.com/jwodder/wheel-filename";
license = with licenses; [ mit ];
maintainers = with lib.maintainers; [ ayazhafiz ];
};
}
|