1{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, flake8 }: 2 3buildPythonPackage rec { 4 pname = "pure-cdb"; 5 version = "4.0.0"; 6 disabled = pythonOlder "3.4"; 7 8 # Archive on pypi has no tests. 9 src = fetchFromGitHub { 10 owner = "bbayles"; 11 repo = "python-pure-cdb"; 12 rev = "refs/tags/v${version}"; 13 hash = "sha256-7zxQO+oTZJhXfM2yijGXchLixiQRuFTOSESVlEc+T0s="; 14 }; 15 16 nativeCheckInputs = [ flake8 ]; 17 18 pythonImportsCheck = [ "cdblib" ]; 19 20 meta = with lib; { 21 description = "Python library for working with constant databases"; 22 homepage = "https://python-pure-cdb.readthedocs.io/en/latest"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ kaction ]; 25 }; 26}