mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-13 21:56:29 +01:00
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>
49 lines
960 B
Nix
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 = [ ];
|
|
};
|
|
}
|