mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 06:06:32 +01:00
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
expandvars,
|
|
fetchFromGitHub,
|
|
pytest-codspeed,
|
|
pytest-cov-stub,
|
|
pytest-xdist,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "propcache";
|
|
version = "0.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aio-libs";
|
|
repo = "propcache";
|
|
tag = "v${version}";
|
|
hash = "sha256-7HQUOggbFC7kWcXqatLeCTNJqo0fW9FRCy8UkYL6wvM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace packaging/pep517_backend/_backend.py \
|
|
--replace "Cython ~=" "Cython >="
|
|
'';
|
|
|
|
build-system = [
|
|
cython
|
|
expandvars
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-codspeed
|
|
pytest-cov-stub
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "propcache" ];
|
|
|
|
meta = {
|
|
description = "Fast property caching";
|
|
homepage = "https://github.com/aio-libs/propcache";
|
|
changelog = "https://github.com/aio-libs/propcache/blob/${src.tag}/CHANGES.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|