Something went wrong. Try again.
lol
Something went wrong. Try again.
2.0 kB · 95 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596{ lib, stdenv, buildPythonPackage, colorlog, fetchFromGitHub, fetchpatch, 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="; };
patches = [ # Upstream PR: https://github.com/datafolklabs/cement/pull/759 (fetchpatch { name = "python-3.14.patch"; url = "https://github.com/datafolklabs/cement/commit/8b038170d82be7dbd283d72b9c5db3cceec7163b.patch"; includes = [ "tests/*" ]; hash = "sha256-GUHAYp2oxHo1vo1gWnOyCAaNyBBIQM1ixC1p+Yc+Fsc="; }) ];
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"; };}