mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +00:00
python312Packages.cement: 3.0.10 -> 3.0.12
Diff: datafolklabs/cement@refs/tags/3.0.10...3.0.12 Changelog: https://github.com/datafolklabs/cement/blob/3.0.12/CHANGELOG.md
This commit is contained in:
parent
2ee977f38f
commit
e1eb67dc93
@ -1,33 +1,82 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
colorlog,
|
||||
fetchFromGitHub,
|
||||
jinja2,
|
||||
mock,
|
||||
pdm-backend,
|
||||
pylibmc,
|
||||
pystache,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
pyyaml,
|
||||
redis,
|
||||
requests,
|
||||
tabulate,
|
||||
watchdog,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cement";
|
||||
version = "3.0.10";
|
||||
format = "setuptools";
|
||||
version = "3.0.12";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-c9EBXr+bjfE+a8mH7fDUvj8ci0Q4kh7qjWbLtVBK7hU=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "datafolklabs";
|
||||
repo = "cement";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-weBqmNEjeSh5YQfHK48VVFW3UbZQmV4MiIQ3UPQKTTI=";
|
||||
};
|
||||
|
||||
# Disable test tests since they depend on a memcached server running on
|
||||
# 127.0.0.1:11211.
|
||||
doCheck = false;
|
||||
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.flatten (builtins.attrValues optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "cement" ];
|
||||
|
||||
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 = with lib; {
|
||||
description = "CLI Application Framework for Python";
|
||||
mainProgram = "cement";
|
||||
homepage = "https://builtoncement.com/";
|
||||
changelog = "https://github.com/datafolklabs/cement/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ eqyiel ];
|
||||
mainProgram = "cement";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user