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
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pfzy,
|
|
poetry-core,
|
|
prompt-toolkit,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "inquirerpy";
|
|
version = "0.3.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kazhala";
|
|
repo = "InquirerPy";
|
|
tag = version;
|
|
hash = "sha256-Ap0xZHEU458tjm6oEN5EtDoSRlnpZ7jvDq1L7fTlQQc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
pfzy
|
|
prompt-toolkit
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "InquirerPy" ];
|
|
|
|
disabledTestPaths = [
|
|
# AttributeError: '_GeneratorContextManager' object has no attribute 'close'
|
|
"tests/prompts/"
|
|
"tests/base/test_simple.py"
|
|
"tests/base/test_complex.py"
|
|
"tests/base/test_list.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python port of Inquirer.js";
|
|
homepage = "https://github.com/kazhala/InquirerPy";
|
|
changelog = "https://github.com/kazhala/InquirerPy/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|