at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 wheel, 10 11 # dependencies 12 typing-extensions, 13 14 # checks 15 pytestCheckHook, 16 pytest-mpl, 17 pytest-subtests, 18}: 19 20buildPythonPackage rec { 21 pname = "flexcache"; 22 version = "0.3"; 23 pyproject = true; 24 25 src = fetchFromGitHub { 26 owner = "hgrecco"; 27 repo = "flexcache"; 28 rev = version; 29 hash = "sha256-MAbTe7NxzfRPzo/Wnb5SnPJvJWf6zVeYsaw/g9OJYSE="; 30 }; 31 32 build-system = [ 33 setuptools 34 setuptools-scm 35 wheel 36 ]; 37 38 dependencies = [ typing-extensions ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 pytest-mpl 43 pytest-subtests 44 ]; 45 46 pythonImportsCheck = [ "flexcache" ]; 47 48 meta = with lib; { 49 description = "Robust and extensible package to cache on disk the result of expensive calculations"; 50 homepage = "https://github.com/hgrecco/flexcache"; 51 changelog = "https://github.com/hgrecco/flexcache/blob/${src.rev}/CHANGES"; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ doronbehar ]; 54 }; 55}