python3Packages.ConfigArgParse: enable tests

This commit is contained in:
Fabian Affolter 2021-02-16 08:09:34 +01:00
parent d1960be1bd
commit d134462b74

View File

@ -1,20 +1,31 @@
{ lib, buildPythonPackage, fetchPypi }: { lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ConfigArgParse"; pname = "ConfigArgParse";
version = "1.3"; version = "1.3";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "bw2";
sha256 = "sha256-BCi5datsSLsQHMtzLhtcthYpbigmjgMqqAbzK2R6HME="; repo = pname;
rev = version;
sha256 = "147x781lgahn9r3gbhayhx1pf0iysf7q1hnr3kypy3p2k9v7a9mh";
}; };
# no tests in tarball checkInputs = [
doCheck = false; mock
pytestCheckHook
];
pythonImportsCheck = [ "configargparse" ];
meta = with lib; { meta = with lib; {
description = "A drop-in replacement for argparse"; description = "A drop-in replacement for argparse";
homepage = "https://github.com/zorro3/ConfigArgParse"; homepage = "https://github.com/bw2/ConfigArgParse";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.willibutz ]; maintainers = [ maintainers.willibutz ];
}; };