nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

python313Packages.whey: follow contributing guidelines

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