mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.ansicolors: migrate to pyproject (#527949)
This commit is contained in:
commit
f1acec6587
1 changed files with 11 additions and 5 deletions
|
|
@ -3,29 +3,35 @@
|
|||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pytest,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "ansicolors";
|
||||
version = "1.1.8";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) pname version;
|
||||
extension = "zip";
|
||||
sha256 = "99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0";
|
||||
hash = "sha256-mflPXjNIoLzUPILl/EQUATzMGdcL2TmtceATPOnDcuA=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "colors" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/verigak/colors/";
|
||||
changelog = "https://pypi.org/project/ansicolors/${finalAttrs.version}/";
|
||||
description = "ANSI colors for Python";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue