nixpkgs/pkgs/development/python-modules/pure-cdb/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

27 lines
706 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, flake8 }:
buildPythonPackage rec {
pname = "pure-cdb";
version = "4.0.0";
disabled = pythonOlder "3.4";
# Archive on pypi has no tests.
src = fetchFromGitHub {
owner = "bbayles";
repo = "python-pure-cdb";
rev = "refs/tags/v${version}";
hash = "sha256-7zxQO+oTZJhXfM2yijGXchLixiQRuFTOSESVlEc+T0s=";
};
nativeCheckInputs = [ 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 ];
};
}