1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
47 lines
972 B
Nix
47 lines
972 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pillow,
|
|
pyfiglet,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
wcwidth,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asciimatics";
|
|
version = "1.15.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-z905gEJydRnYtz5iuO+CwL7P7U60IImcO5bJjQuWgho=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
pyfiglet
|
|
pillow
|
|
wcwidth
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [
|
|
"asciimatics.effects"
|
|
"asciimatics.renderers"
|
|
"asciimatics.scene"
|
|
"asciimatics.screen"
|
|
];
|
|
|
|
meta = {
|
|
description = "Module to create full-screen text UIs (from interactive forms to ASCII animations)";
|
|
homepage = "https://github.com/peterbrittain/asciimatics";
|
|
changelog = "https://github.com/peterbrittain/asciimatics/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ cmcdragonkai ];
|
|
};
|
|
}
|