python312Packages.cement: 3.0.10 -> 3.0.12 (#356440)

authored by kirillrdy and committed by GitHub e7fce9e4 a1fa8cc8

+97 -45
+33 -34
pkgs/by-name/aw/awsebcli/package.nix
··· 2 lib, 3 python3, 4 fetchFromGitHub, 5 git, 6 }: 7 8 let 9 - changeVersion = 10 - overrideFunc: version: hash: 11 - overrideFunc (oldAttrs: rec { 12 - inherit version; 13 - src = oldAttrs.src.override { 14 - inherit version hash; 15 - }; 16 - }); 17 - 18 - localPython = python3.override { 19 - self = localPython; 20 packageOverrides = self: super: { 21 - cement = 22 - changeVersion super.cement.overridePythonAttrs "2.10.14" 23 - "sha256-NC4n21SmYW3RiS7QuzWXoifO4z3C2FVgQm3xf8qQcFg="; 24 }; 25 }; 26 - 27 in 28 29 - localPython.pkgs.buildPythonApplication rec { 30 pname = "awsebcli"; 31 version = "3.21"; 32 - format = "setuptools"; 33 34 src = fetchFromGitHub { 35 owner = "aws"; ··· 38 hash = "sha256-VU8bXvS4m4eIamjlgGmHE2qwDXWAXvWTa0QHomXR5ZE="; 39 }; 40 41 postPatch = '' 42 # https://github.com/aws/aws-elastic-beanstalk-cli/pull/469 43 - substituteInPlace setup.py --replace-fail "scripts=['bin/eb']," "" 44 ''; 45 46 - propagatedBuildInputs = with localPython.pkgs; [ 47 blessed 48 botocore 49 cement ··· 59 websocket-client 60 ]; 61 62 - pythonRelaxDeps = [ 63 - "botocore" 64 - "colorama" 65 - "pathspec" 66 - "PyYAML" 67 - "six" 68 - "termcolor" 69 - ]; 70 - 71 - nativeCheckInputs = with localPython.pkgs; [ 72 pytestCheckHook 73 - pytest-socket 74 - mock 75 - git 76 ]; 77 78 pytestFlagsArray = [ ··· 92 ]; 93 94 meta = with lib; { 95 - homepage = "https://aws.amazon.com/elasticbeanstalk/"; 96 description = "Command line interface for Elastic Beanstalk"; 97 changelog = "https://github.com/aws/aws-elastic-beanstalk-cli/blob/${version}/CHANGES.rst"; 98 - maintainers = with maintainers; [ kirillrdy ]; 99 license = licenses.asl20; 100 mainProgram = "eb"; 101 }; 102 }
··· 2 lib, 3 python3, 4 fetchFromGitHub, 5 + fetchPypi, 6 git, 7 }: 8 9 let 10 + python = python3.override { 11 packageOverrides = self: super: { 12 + cement = super.cement.overridePythonAttrs (old: rec { 13 + pname = "cement"; 14 + version = "2.10.14"; 15 + src = fetchPypi { 16 + inherit pname version; 17 + hash = "sha256-NC4n21SmYW3RiS7QuzWXoifO4z3C2FVgQm3xf8qQcFg="; 18 + }; 19 + build-system = old.build-system or [ ] ++ (with python.pkgs; [ setuptools ]); 20 + doCheck = false; 21 + }); 22 }; 23 }; 24 in 25 26 + python.pkgs.buildPythonApplication rec { 27 pname = "awsebcli"; 28 version = "3.21"; 29 + pyproject = true; 30 31 src = fetchFromGitHub { 32 owner = "aws"; ··· 35 hash = "sha256-VU8bXvS4m4eIamjlgGmHE2qwDXWAXvWTa0QHomXR5ZE="; 36 }; 37 38 + pythonRelaxDeps = [ 39 + "botocore" 40 + "colorama" 41 + "pathspec" 42 + "PyYAML" 43 + "six" 44 + "termcolor" 45 + "urllib3" 46 + ]; 47 + 48 postPatch = '' 49 # https://github.com/aws/aws-elastic-beanstalk-cli/pull/469 50 + substituteInPlace setup.py \ 51 + --replace-fail "scripts=['bin/eb']," "" 52 ''; 53 54 + dependencies = with python.pkgs; [ 55 blessed 56 botocore 57 cement ··· 67 websocket-client 68 ]; 69 70 + nativeCheckInputs = with python.pkgs; [ 71 + git 72 + mock 73 + pytest-socket 74 pytestCheckHook 75 ]; 76 77 pytestFlagsArray = [ ··· 91 ]; 92 93 meta = with lib; { 94 description = "Command line interface for Elastic Beanstalk"; 95 + homepage = "https://aws.amazon.com/elasticbeanstalk/"; 96 changelog = "https://github.com/aws/aws-elastic-beanstalk-cli/blob/${version}/CHANGES.rst"; 97 license = licenses.asl20; 98 + maintainers = with maintainers; [ kirillrdy ]; 99 mainProgram = "eb"; 100 }; 101 }
+64 -11
pkgs/development/python-modules/cement/default.nix
··· 1 { 2 lib, 3 buildPythonPackage, 4 - fetchPypi, 5 pythonOlder, 6 }: 7 8 buildPythonPackage rec { 9 pname = "cement"; 10 - version = "3.0.10"; 11 - format = "setuptools"; 12 13 - disabled = pythonOlder "3.5"; 14 15 - src = fetchPypi { 16 - inherit pname version; 17 - hash = "sha256-c9EBXr+bjfE+a8mH7fDUvj8ci0Q4kh7qjWbLtVBK7hU="; 18 }; 19 20 - # Disable test tests since they depend on a memcached server running on 21 - # 127.0.0.1:11211. 22 - doCheck = false; 23 24 pythonImportsCheck = [ "cement" ]; 25 26 meta = with lib; { 27 description = "CLI Application Framework for Python"; 28 - mainProgram = "cement"; 29 homepage = "https://builtoncement.com/"; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ eqyiel ]; 32 }; 33 }
··· 1 { 2 lib, 3 + stdenv, 4 buildPythonPackage, 5 + colorlog, 6 + fetchFromGitHub, 7 + jinja2, 8 + mock, 9 + pdm-backend, 10 + pylibmc, 11 + pystache, 12 + pytest-cov-stub, 13 + pytestCheckHook, 14 pythonOlder, 15 + pyyaml, 16 + redis, 17 + requests, 18 + tabulate, 19 + watchdog, 20 }: 21 22 buildPythonPackage rec { 23 pname = "cement"; 24 + version = "3.0.12"; 25 + pyproject = true; 26 + 27 + disabled = pythonOlder "3.8"; 28 + 29 + src = fetchFromGitHub { 30 + owner = "datafolklabs"; 31 + repo = "cement"; 32 + rev = "refs/tags/${version}"; 33 + hash = "sha256-weBqmNEjeSh5YQfHK48VVFW3UbZQmV4MiIQ3UPQKTTI="; 34 + }; 35 36 + build-system = [ pdm-backend ]; 37 38 + optional-dependencies = { 39 + colorlog = [ colorlog ]; 40 + jinja2 = [ jinja2 ]; 41 + mustache = [ pystache ]; 42 + generate = [ pyyaml ]; 43 + redis = [ redis ]; 44 + memcached = [ pylibmc ]; 45 + tabulate = [ tabulate ]; 46 + watchdog = [ watchdog ]; 47 + yaml = [ pyyaml ]; 48 + cli = [ 49 + jinja2 50 + pyyaml 51 + ]; 52 }; 53 54 + nativeCheckInputs = [ 55 + mock 56 + pytest-cov-stub 57 + pytestCheckHook 58 + requests 59 + ] ++ lib.flatten (builtins.attrValues optional-dependencies); 60 61 pythonImportsCheck = [ "cement" ]; 62 63 + # Tests are failing on Darwin 64 + doCheck = !stdenv.hostPlatform.isDarwin; 65 + 66 + disabledTests = [ 67 + # Test only works with the source from PyPI 68 + "test_get_version" 69 + ]; 70 + 71 + disabledTestPaths = [ 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" 76 + ]; 77 + 78 meta = with lib; { 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"; 85 }; 86 }