python313Packages.whey: follow contributing guidelines

+36 -10
+36 -10
pkgs/development/python-modules/whey/default.nix
··· 1 { 2 buildPythonPackage, 3 - fetchPypi, 4 lib, 5 setuptools, 6 attrs, 7 click, 8 consolekit, 9 dist-meta, 10 dom-toml, 11 domdf-python-tools, 12 handy-archives, 13 natsort, 14 packaging, 15 pyproject-parser, 16 shippinglabel, 17 }: 18 buildPythonPackage rec { 19 pname = "whey"; 20 version = "0.1.1"; 21 pyproject = true; 22 23 - src = fetchPypi { 24 - inherit pname version; 25 - hash = "sha256-l72fjczuuDXg/cDiqJ7roNVm4X+au+1u4AA8Szs1bNo="; 26 }; 27 28 build-system = [ setuptools ]; 29 ··· 41 shippinglabel 42 ]; 43 44 - postPatch = '' 45 - substituteInPlace pyproject.toml \ 46 - --replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"' 47 - ''; 48 49 meta = { 50 - description = "A simple Python wheel builder for simple projects."; 51 - homepage = "https://pypi.org/project/whey"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ tyberius-prime ]; 54 };
··· 1 { 2 buildPythonPackage, 3 + fetchFromGitHub, 4 lib, 5 setuptools, 6 attrs, 7 click, 8 consolekit, 9 dist-meta, 10 + docutils, 11 dom-toml, 12 domdf-python-tools, 13 + editables, 14 handy-archives, 15 natsort, 16 packaging, 17 pyproject-parser, 18 + pytestCheckHook, 19 shippinglabel, 20 }: 21 + 22 buildPythonPackage rec { 23 pname = "whey"; 24 version = "0.1.1"; 25 pyproject = true; 26 27 + src = fetchFromGitHub { 28 + owner = "repo-helper"; 29 + repo = "whey"; 30 + tag = "v${version}"; 31 + hash = "sha256-s2jZmuFj0gTWVTcXWcBhcu5RBuaf/qMS/xzIpIoG1ZE="; 32 }; 33 + 34 + postPatch = '' 35 + substituteInPlace pyproject.toml \ 36 + --replace-fail 'setuptools!=61.*,<=67.1.0,>=40.6.0' setuptools 37 + ''; 38 39 build-system = [ setuptools ]; 40 ··· 52 shippinglabel 53 ]; 54 55 + pythonImportsCheck = [ "whey" ]; 56 + 57 + optional-dependencies = { 58 + all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") optional-dependencies)); 59 + editable = [ 60 + editables 61 + ]; 62 + readme = [ 63 + docutils 64 + pyproject-parser 65 + ] ++ pyproject-parser.optional-dependencies.readme; 66 + }; 67 + 68 + nativeCheckInputs = [ 69 + pytestCheckHook 70 + ]; 71 + 72 + # missing dependency pyproject-examples 73 + doCheck = false; 74 75 meta = { 76 + description = "Simple Python wheel builder for simple projects"; 77 + homepage = "https://github.com/repo-helper/whey"; 78 license = lib.licenses.mit; 79 maintainers = with lib.maintainers; [ tyberius-prime ]; 80 };