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