mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:44:09 +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.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
python-dateutil,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-crontab";
|
|
version = "3.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "python_crontab";
|
|
inherit version;
|
|
hash = "sha256-AHyK7mjd3z4E7E3OD6wSS5O9aL50cPyV0qlhehXeKRs=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ python-dateutil ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
"test_07_non_posix_shell"
|
|
# doctest that assumes /tmp is writeable, awkward to patch
|
|
"test_03_usage"
|
|
# Test is assuming $CURRENT_YEAR is not a leap year
|
|
"test_19_frequency_at_month"
|
|
"test_20_frequency_at_year"
|
|
];
|
|
|
|
pythonImportsCheck = [ "crontab" ];
|
|
|
|
meta = {
|
|
description = "Python API for crontab";
|
|
longDescription = ''
|
|
Crontab module for reading and writing crontab files
|
|
and accessing the system cron automatically and simply using a direct API.
|
|
'';
|
|
homepage = "https://gitlab.com/doctormo/python-crontab/";
|
|
license = lib.licenses.lgpl3Plus;
|
|
maintainers = with lib.maintainers; [ kfollesdal ];
|
|
};
|
|
}
|