nixpkgs/pkgs/development/python-modules/colout/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

46 lines
823 B
Nix

{ lib
, babel
, buildPythonPackage
, fetchFromGitHub
, pygments
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "colout";
version = "1.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nojhan";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
babel
pygments
];
pythonImportsCheck = [
"colout"
];
# This project does not have a unit test
doCheck = false;
meta = with lib; {
description = "Color Up Arbitrary Command Output";
homepage = "https://github.com/nojhan/colout";
license = licenses.gpl3Only;
maintainers = with maintainers; [ badele ];
};
}