1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytest-cov-stub,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "wheel-filename";
13 version = "1.4.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "jwodder";
20 repo = "wheel-filename";
21 tag = "v${version}";
22 hash = "sha256-KAuUrrSq6HJAy+5Gj6svI4M6oV6Fsle1A79E2q2FKW8=";
23 };
24
25 build-system = [ hatchling ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pytest-cov-stub
30 ];
31
32 pythonImportsCheck = [ "wheel_filename" ];
33
34 meta = with lib; {
35 description = "Parse wheel filenames";
36 homepage = "https://github.com/jwodder/wheel-filename";
37 changelog = "https://github.com/wheelodex/wheel-filename/releases/tag/${src.tag}";
38 license = licenses.mit;
39 maintainers = with lib.maintainers; [ ayazhafiz ];
40 mainProgram = "wheel-filename";
41 };
42}