mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 23:36:39 +01:00
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
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{
|
|
lib,
|
|
atomicwrites,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fpyutils";
|
|
version = "4.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "frnmst";
|
|
repo = "fpyutils";
|
|
tag = version;
|
|
hash = "sha256-VVR1zsejO6kHlMjqqlftDKu3/SyDzgPov9f48HYL/Bk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
atomicwrites
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
enabledTestPaths = [ "fpyutils/tests/*.py" ];
|
|
|
|
disabledTests = [
|
|
# Don't run test which requires bash
|
|
"test_execute_command_live_output"
|
|
];
|
|
|
|
pythonImportsCheck = [ "fpyutils" ];
|
|
|
|
meta = {
|
|
description = "Collection of useful non-standard Python functions";
|
|
homepage = "https://github.com/frnmst/fpyutils";
|
|
changelog = "https://blog.franco.net.eu.org/software/fpyutils-${version}/release.html";
|
|
license = with lib.licenses; [ gpl3Plus ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|