python310Packages.sigtools: reenable tests

This commit is contained in:
Theodore Ni 2022-11-15 23:38:08 -08:00
parent c6c9ecf5e8
commit 2f65646b1a
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,13 +1,12 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, sphinx
, mock
, coverage
, unittest2
, repeated-test
, unittestCheckHook
, attrs
, funcsigs
, six
, setuptools-scm
}:
@ -16,6 +15,8 @@ buildPythonPackage rec {
version = "4.0.1";
format = "pyproject";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-S44TWpzU0uoA2mcMCTNy105nK6OruH9MmNjnPepURFw=";
@ -29,12 +30,12 @@ buildPythonPackage rec {
attrs
];
patchPhase = ''sed -i s/test_suite="'"sigtools.tests"'"/test_suite="'"unittest2.collector"'"/ setup.py'';
# repeated_test no longer exists in nixpkgs
# Also see: https://github.com/epsy/sigtools/issues/26
doCheck = false;
checkInputs = [ sphinx mock coverage unittest2 ];
checkInputs = [
mock
repeated-test
sphinx
unittestCheckHook
];
meta = with lib; {
description = "Utilities for working with 3.3's inspect.Signature objects.";