python3Packages.colored: 1.4.4 -> 2.2.3

This commit is contained in:
Martin Weinelt 2023-09-15 14:05:56 +02:00
parent 98d6f42568
commit ae63bf7044

View File

@ -1,24 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, fetchFromGitLab
, flit-core
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "colored";
version = "1.4.4";
format = "setuptools";
version = "2.2.3";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-BP9NTdUUJ0/juZohu1L7lvJojAHpP7p77zciHny1bOA=";
src = fetchFromGitLab {
owner = "dslackw";
repo = "colored";
rev = "refs/tags/${version}";
hash = "sha256-4APFAIN+cmPPd6qbqVC9iU4YntNEjoPbJXZywG1hsBY=";
};
nativeCheckInputs = [ nose ];
nativeBuildInputs = [
flit-core
];
checkPhase = ''
nosetests
'';
nativeCheckInputs = [
unittestCheckHook
];
unittestFlagsArray = [
"unittests"
];
pythonImportsCheck = [
"colored"