nixpkgs/pkgs/development/python-modules/cached-ipaddress/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
960 B
Nix

{
lib,
buildPythonPackage,
cython,
fetchFromGitHub,
poetry-core,
pytest-codspeed,
pytest-cov-stub,
pytestCheckHook,
setuptools,
propcache,
}:
buildPythonPackage rec {
pname = "cached-ipaddress";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "cached-ipaddress";
tag = "v${version}";
hash = "sha256-/bq9RZcC6VDK5JxT1QcAJpWNmioNqOearYc34KsCvHs=";
};
build-system = [
cython
poetry-core
setuptools
];
dependencies = [ propcache ];
nativeCheckInputs = [
pytest-codspeed
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "cached_ipaddress" ];
meta = {
description = "Cache construction of ipaddress objects";
homepage = "https://github.com/bdraco/cached-ipaddress";
changelog = "https://github.com/bdraco/cached-ipaddress/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}