Skip to content

Commit

Permalink
python313Packages.whey: follow contributing guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Jan 22, 2025
1 parent 20065b3 commit 53553b3
Showing 1 changed file with 36 additions and 10 deletions.
46 changes: 36 additions & 10 deletions pkgs/development/python-modules/whey/default.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,41 @@
{
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
lib,
setuptools,
attrs,
click,
consolekit,
dist-meta,
docutils,
dom-toml,
domdf-python-tools,
editables,
handy-archives,
natsort,
packaging,
pyproject-parser,
pytestCheckHook,
shippinglabel,
}:

buildPythonPackage rec {
pname = "whey";
version = "0.1.1";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-l72fjczuuDXg/cDiqJ7roNVm4X+au+1u4AA8Szs1bNo=";
src = fetchFromGitHub {
owner = "repo-helper";
repo = "whey";
tag = "v${version}";
hash = "sha256-s2jZmuFj0gTWVTcXWcBhcu5RBuaf/qMS/xzIpIoG1ZE=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'setuptools!=61.*,<=67.1.0,>=40.6.0' setuptools
'';

build-system = [ setuptools ];

dependencies = [
Expand All @@ -41,14 +52,29 @@ buildPythonPackage rec {
shippinglabel
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
'';
pythonImportsCheck = [ "whey" ];

optional-dependencies = {
all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") optional-dependencies));
editable = [
editables
];
readme = [
docutils
pyproject-parser
] ++ pyproject-parser.optional-dependencies.readme;
};

nativeCheckInputs = [
pytestCheckHook
];

# missing dependency pyproject-examples
doCheck = false;

meta = {
description = "A simple Python wheel builder for simple projects.";
homepage = "https://pypi.org/project/whey";
description = "Simple Python wheel builder for simple projects";
homepage = "https://github.com/repo-helper/whey";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tyberius-prime ];
};
Expand Down

0 comments on commit 53553b3

Please sign in to comment.