nixpkgs/pkgs/development/python-modules/colored/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

35 lines
684 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, nose
}:
buildPythonPackage rec {
pname = "colored";
version = "1.4.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-BP9NTdUUJ0/juZohu1L7lvJojAHpP7p77zciHny1bOA=";
};
nativeCheckInputs = [ nose ];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"colored"
];
meta = with lib; {
description = "Simple library for color and formatting to terminal";
homepage = "https://gitlab.com/dslackw/colored";
changelog = "https://gitlab.com/dslackw/colored/-/raw/${version}/CHANGES.md";
maintainers = with maintainers; [ ];
license = licenses.mit;
};
}