2024-07-01 15:47:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
2024-07-01 15:47:52 +00:00
|
|
|
setuptools-scm,
|
2024-07-27 06:49:29 +00:00
|
|
|
wheel,
|
|
|
|
|
|
|
|
# dependencies
|
2024-07-01 15:47:52 +00:00
|
|
|
typing-extensions,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# checks
|
2024-07-01 15:47:52 +00:00
|
|
|
pytestCheckHook,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytest-mpl,
|
|
|
|
pytest-subtests,
|
2024-07-01 15:47:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flexcache";
|
|
|
|
version = "0.3";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hgrecco";
|
|
|
|
repo = "flexcache";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-MAbTe7NxzfRPzo/Wnb5SnPJvJWf6zVeYsaw/g9OJYSE=";
|
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
|
|
|
];
|
2024-07-01 15:47:52 +00:00
|
|
|
|
|
|
|
dependencies = [ typing-extensions ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mpl
|
|
|
|
pytest-subtests
|
|
|
|
];
|
2024-07-01 15:47:52 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "flexcache" ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = with lib; {
|
2024-07-01 15:47:52 +00:00
|
|
|
description = "An robust and extensible package to cache on disk the result of expensive calculations";
|
|
|
|
homepage = "https://github.com/hgrecco/flexcache";
|
|
|
|
changelog = "https://github.com/hgrecco/flexcache/blob/${src.rev}/CHANGES";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
2024-07-01 15:47:52 +00:00
|
|
|
};
|
|
|
|
}
|