python310Packages.exceptiongroup: run tests

This commit is contained in:
Robert Schütz 2022-12-08 18:38:56 -08:00
parent 9dd5cd8441
commit 78c4cda802

View File

@ -1,7 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, flit-core , flit-scm
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
}: }:
@ -9,22 +9,26 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "exceptiongroup"; pname = "exceptiongroup";
version = "1.0.4"; version = "1.0.4";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "agronholm";
hash = "sha256-vRSWe3nNm9tU2XMjIW+P31M+J435N6oqkAiefW4G5ew="; repo = "exceptiongroup";
rev = version;
hash = "sha256-csyDWVvcsAMzgomb0xq0NbVP7qYQpDv9obBGANlwiVI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
flit-core flit-scm
]; ];
# Tests are only in the source available but tagged releases SETUPTOOLS_SCM_PRETEND_VERSION = version;
# are incomplete as files are generated during the release process
doCheck = false; checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [
"exceptiongroup" "exceptiongroup"