diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/cachelib/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/cachelib/default.nix | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/cachelib/default.nix b/nixpkgs/pkgs/development/python-modules/cachelib/default.nix index 154c67bb379f..9521d3ee03b4 100644 --- a/nixpkgs/pkgs/development/python-modules/cachelib/default.nix +++ b/nixpkgs/pkgs/development/python-modules/cachelib/default.nix @@ -1,14 +1,30 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest-xprocess +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "cachelib"; - version = "0.1.1"; + version = "0.2.0"; + disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "47e95a67d68c729cbad63285a790a06f0e0d27d71624c6e44c1ec3456bb4476f"; + src = fetchFromGitHub { + owner = "pallets"; + repo = pname; + rev = version; + sha256 = "1jh1ghvrv1mnw6mdq19s6x6fblz9qi0vskc6mjp0cxjpnxxblaml"; }; + checkInputs = [ + pytest-xprocess + pytestCheckHook + ]; + + pythonImportsCheck = [ "cachelib" ]; + meta = with lib; { homepage = "https://github.com/pallets/cachelib"; description = "Collection of cache libraries in the same API interface"; |