python311Packages.colout: specify license
- disable on unsupported Python releases - clean-up inputs - add format
This commit is contained in:
parent
0ddb34290f
commit
c064985640
|
@ -3,35 +3,38 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pygments
|
, pygments
|
||||||
, python3Packages
|
, pythonOlder
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "colout";
|
pname = "colout";
|
||||||
version = "1.1";
|
version = "1.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nojhan";
|
owner = "nojhan";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI=";
|
hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
babel
|
|
||||||
pygments
|
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
babel
|
babel
|
||||||
pygments
|
pygments
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "colout" ];
|
pythonImportsCheck = [
|
||||||
|
"colout"
|
||||||
|
];
|
||||||
|
|
||||||
# This project does not have a unit test
|
# This project does not have a unit test
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -39,7 +42,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Color Up Arbitrary Command Output";
|
description = "Color Up Arbitrary Command Output";
|
||||||
homepage = "https://github.com/nojhan/colout";
|
homepage = "https://github.com/nojhan/colout";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ badele ];
|
maintainers = with maintainers; [ badele ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue