about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cachetools
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-01-31 17:46:15 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-01-31 17:46:15 +0100
commita3cdaa5ec6d1abb5788ecbcf7a269175cf37917d (patch)
treebc475eda5d8f33b35303a22581cb70353f45b0f3 /pkgs/development/python-modules/cachetools
parentd892462a7557abf5d4738a722d3e4684ca4c36dc (diff)
python3Packages.cachetools: enable tests
Diffstat (limited to 'pkgs/development/python-modules/cachetools')
-rw-r--r--pkgs/development/python-modules/cachetools/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/cachetools/default.nix b/pkgs/development/python-modules/cachetools/default.nix
index fce9ae7a7591e..120fd5df124b7 100644
--- a/pkgs/development/python-modules/cachetools/default.nix
+++ b/pkgs/development/python-modules/cachetools/default.nix
@@ -1,21 +1,28 @@
 { lib
 , buildPythonPackage
-, fetchPypi
-, isPy27
+, fetchFromGitHub
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "cachetools";
   version = "4.2.1";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "sha256-9Gninnqkz/ZNjeSq2VznbejqESWhbGjg2T9lw8Pckuk=";
+  src = fetchFromGitHub {
+    owner = "tkem";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1b662ph8m2d05d2vi3izgnr6v7h9zfvscfsaaw8nhdmmm15ivfa6";
   };
 
+  checkInputs = [ pytestCheckHook ];
+
+  pythonImportsCheck = [ "cachetools" ];
+
   meta = with lib; {
     description = "Extensible memoizing collections and decorators";
     homepage = "https://github.com/tkem/cachetools";
-    license = licenses.mit;
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
   };
 }