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
85 lines
1.6 KiB
Nix
85 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
colorlog,
|
|
fetchFromGitHub,
|
|
jinja2,
|
|
mock,
|
|
pdm-backend,
|
|
pylibmc,
|
|
pystache,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
redis,
|
|
requests,
|
|
tabulate,
|
|
watchdog,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cement";
|
|
version = "3.0.14";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "datafolklabs";
|
|
repo = "cement";
|
|
tag = version;
|
|
hash = "sha256-hZ9kKQmMomjy5nnHKQ2RWB+6vIID8XMn3qutg0wCBq8=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
optional-dependencies = {
|
|
colorlog = [ colorlog ];
|
|
jinja2 = [ jinja2 ];
|
|
mustache = [ pystache ];
|
|
generate = [ pyyaml ];
|
|
redis = [ redis ];
|
|
memcached = [ pylibmc ];
|
|
tabulate = [ tabulate ];
|
|
watchdog = [ watchdog ];
|
|
yaml = [ pyyaml ];
|
|
cli = [
|
|
jinja2
|
|
pyyaml
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
requests
|
|
]
|
|
++ lib.concatAttrValues optional-dependencies;
|
|
|
|
pythonImportsCheck = [ "cement" ];
|
|
|
|
# Tests are failing on Darwin
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
disabledTests = [
|
|
# Test only works with the source from PyPI
|
|
"test_get_version"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Tests require network access
|
|
"tests/ext/test_ext_memcached.py"
|
|
"tests/ext/test_ext_redis.py"
|
|
"tests/ext/test_ext_smtp.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "CLI Application Framework for Python";
|
|
homepage = "https://builtoncement.com/";
|
|
changelog = "https://github.com/datafolklabs/cement/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ eqyiel ];
|
|
mainProgram = "cement";
|
|
};
|
|
}
|