diff --git a/pkgs/development/python-modules/pure-cdb/default.nix b/pkgs/development/python-modules/pure-cdb/default.nix new file mode 100644 index 000000000000..29905d72cf27 --- /dev/null +++ b/pkgs/development/python-modules/pure-cdb/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, flake8 }: + +buildPythonPackage rec { + pname = "pure-cdb"; + version = "3.1.1"; + disabled = pythonOlder "3.4"; + + # Archive on pypi has no tests. + src = fetchFromGitHub { + owner = "bbayles"; + repo = "python-pure-cdb"; + rev = "v${version}"; + hash = "sha256-/FAe4NkY5unt83BOnJ3QqBJFQCPdQnbMVl1fSZ511Fc="; + }; + + checkInputs = [ flake8 ]; + + pythonImportsCheck = [ "cdblib" ]; + + meta = with lib; { + description = "Python library for working with constant databases"; + homepage = "https://python-pure-cdb.readthedocs.io/en/latest"; + license = licenses.mit; + maintainers = with maintainers; [ kaction ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7a5dfccd8a2a..a093d674409b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5221,6 +5221,8 @@ in { pulsectl = callPackage ../development/python-modules/pulsectl { }; + pure-cdb = callPackage ../development/python-modules/pure-cdb { }; + pure-eval = callPackage ../development/python-modules/pure-eval { }; pure-pcapy3 = callPackage ../development/python-modules/pure-pcapy3 { };