1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 six,
7 nix-update-script,
8 pytestCheckHook,
9 pytest-cov-stub,
10}:
11
12buildPythonPackage rec {
13 pname = "wirerope";
14 version = "1.0.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "youknowone";
19 repo = "wirerope";
20 rev = version;
21 hash = "sha256-oojnv+2+nwL/TJhN+QZ5eiV6WGHC3SCxBQrCri0aHQc=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ six ];
27
28 pythonImportsCheck = [ "wirerope" ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 pytest-cov-stub
33 ];
34
35 passthru.updateScript = nix-update-script { };
36
37 meta = with lib; {
38 description = "Wrappers for class callables";
39 homepage = "https://github.com/youknowone/wirerope";
40 changelog = "https://github.com/youknowone/wirerope/releases/tag/${version}";
41 license = licenses.bsd2WithViews;
42 maintainers = with maintainers; [ pbsds ];
43 };
44}