diff --git a/pkgs/development/python-modules/pylru/default.nix b/pkgs/development/python-modules/pylru/default.nix index 65eaa41565a2..44e2d687c3c3 100644 --- a/pkgs/development/python-modules/pylru/default.nix +++ b/pkgs/development/python-modules/pylru/default.nix @@ -2,29 +2,37 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, }: buildPythonPackage rec { pname = "pylru"; - version = "1.2.1"; - format = "setuptools"; + version = "1.3.1"; + pyproject = true; src = fetchFromGitHub { owner = "jlhutch"; repo = "pylru"; rev = "v${version}"; - hash = "sha256-dTYiD+/zt0ZSP+sefYyeD87To1nRXyoFodlBg8pm1YE="; + hash = "sha256-3qycUYmnLGiuNsrBOCL/QiRkrPVikaRqVBmQFURDGKs="; }; - # Check with the next release if tests are ready - doCheck = false; + build-system = [ setuptools ]; + + checkPhase = '' + runHook preCheck + + python test.py + + runHook postCheck + ''; pythonImportsCheck = [ "pylru" ]; meta = { description = "Least recently used (LRU) cache implementation"; homepage = "https://github.com/jlhutch/pylru"; - license = lib.licenses.gpl2Only; + license = lib.licenses.mit; maintainers = [ ]; }; }