python310Packages.cccolutils: rename GitPython

- add pythonImportsCheck
- switch to pytestCheckHook
This commit is contained in:
Fabian Affolter
2022-12-05 19:50:54 +01:00
parent 5626551cbb
commit 0ade4c5f53
@@ -1,23 +1,49 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, krb5Full, nose, GitPython, mock, git }:
{ lib
, buildPythonPackage
, fetchPypi
, git
, gitpython
, krb5Full
, mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "CCColUtils";
pname = "cccolutils";
version = "1.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "1gwcq4xan9as1j3q9k2zqrywxp46qx0ljwxbck9id2fvilds6ck3";
pname = "CCColUtils";
inherit version;
hash = "sha256-YzKjG43biRbTZKtzSUHHhtzOfcZfzISHDFolqzrBjL8=";
};
buildInputs = [ krb5Full ];
propagatedBuildInputs = [ nose GitPython mock git ];
buildInputs = [
krb5Full
];
doCheck = isPy3k; # needs unpackaged module to run tests on python2
propagatedBuildInputs = [
git
gitpython
mock
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"cccolutils"
];
meta = with lib; {
description = "Python Kerberos 5 Credential Cache Collection Utilities";
homepage = "https://pagure.io/cccolutils";
license = licenses.gpl2;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ disassembler ];
};
}