@@ -0,0 +1,26 @@
1+{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, flake8 }:
2+
3+buildPythonPackage rec {
4+ pname = "pure-cdb";
5+ version = "3.1.1";
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 = "v${version}";
13+ hash = "sha256-/FAe4NkY5unt83BOnJ3QqBJFQCPdQnbMVl1fSZ511Fc=";
14+ };
15+
16+ checkInputs = [ 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+}