depot/third_party/nixpkgs/pkgs/development/python-modules/flexcache/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

37 lines
893 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
typing-extensions,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flexcache";
version = "0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "hgrecco";
repo = "flexcache";
rev = "refs/tags/${version}";
hash = "sha256-MAbTe7NxzfRPzo/Wnb5SnPJvJWf6zVeYsaw/g9OJYSE=";
};
build-system = [ setuptools-scm ];
dependencies = [ typing-extensions ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "flexcache" ];
meta = {
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";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ doronbehar ];
};
}