1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchFromGitHub,
6 poetry-core,
7 pytest-codspeed,
8 pytest-cov-stub,
9 pytestCheckHook,
10 setuptools,
11 propcache,
12}:
13
14buildPythonPackage rec {
15 pname = "cached-ipaddress";
16 version = "1.0.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "bdraco";
21 repo = "cached-ipaddress";
22 tag = "v${version}";
23 hash = "sha256-/bq9RZcC6VDK5JxT1QcAJpWNmioNqOearYc34KsCvHs=";
24 };
25
26 build-system = [
27 cython
28 poetry-core
29 setuptools
30 ];
31
32 dependencies = [ propcache ];
33
34 nativeCheckInputs = [
35 pytest-codspeed
36 pytest-cov-stub
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "cached_ipaddress" ];
41
42 meta = with lib; {
43 description = "Cache construction of ipaddress objects";
44 homepage = "https://github.com/bdraco/cached-ipaddress";
45 changelog = "https://github.com/bdraco/cached-ipaddress/blob/${src.rev}/CHANGELOG.md";
46 license = licenses.mit;
47 maintainers = [ ];
48 };
49}