22 buildPythonPackage rec {
27 disabled = pythonOlder "3.8";
29 src = fetchFromGitHub {
30 owner = "datafolklabs";
33 hash = "sha256-weBqmNEjeSh5YQfHK48VVFW3UbZQmV4MiIQ3UPQKTTI=";
36 build-system = [ pdm-backend ];
38 optional-dependencies = {
39 colorlog = [ colorlog ];
41 mustache = [ pystache ];
42 generate = [ pyyaml ];
44 memcached = [ pylibmc ];
45 tabulate = [ tabulate ];
46 watchdog = [ watchdog ];
59 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
61 pythonImportsCheck = [ "cement" ];
63 # Tests are failing on Darwin
64 doCheck = !stdenv.hostPlatform.isDarwin;
67 # Test only works with the source from PyPI
72 # Tests require network access
73 "tests/ext/test_ext_memcached.py"
74 "tests/ext/test_ext_redis.py"
75 "tests/ext/test_ext_smtp.py"
79 description = "CLI Application Framework for Python";
80 homepage = "https://builtoncement.com/";
81 changelog = "https://github.com/datafolklabs/cement/blob/${version}/CHANGELOG.md";
82 license = licenses.bsd3;
83 maintainers = with maintainers; [ eqyiel ];
84 mainProgram = "cement";