@@ -1,14 +1,30 @@
1−{ lib, buildPythonPackage, fetchPypi }:
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytest-xprocess
5+, pytestCheckHook
6+, pythonOlder
7+}:
28
39buildPythonPackage rec {
410 pname = "cachelib";
511 version = "0.2.0";
12+ disabled = pythonOlder "3.6";
613
7− src = fetchPypi {
8− inherit pname version;
9− sha256 = "sha256-3LX6/mtrVEqqjQyssS1wu/m79ywEHxf8rRYY23vt6to=";
14+ src = fetchFromGitHub {
15+ owner = "pallets";
16+ repo = pname;
17+ rev = version;
18+ sha256 = "1jh1ghvrv1mnw6mdq19s6x6fblz9qi0vskc6mjp0cxjpnxxblaml";
1019 };
1120
21+ checkInputs = [
22+ pytest-xprocess
23+ pytestCheckHook
24+ ];
25+
26+ pythonImportsCheck = [ "cachelib" ];
27+
1228 meta = with lib; {
1329 homepage = "https://github.com/pallets/cachelib";
1430 description = "Collection of cache libraries in the same API interface";