Skip to content

Commit

Permalink
python313Packages.whey-pth: follow contributing guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Jan 23, 2025
1 parent 53553b3 commit a0059ad
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions pkgs/development/python-modules/whey-pth/default.nix
Original file line number Diff line number Diff line change
@@ -1,36 +1,49 @@
{
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
lib,
setuptools,
dom-toml,
whey,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "whey-pth";
version = "0.0.6";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-CIpgqzNXW3VpS+k6BCpc2DNyqwgt/Af3ms59AH/V5KM=";
src = fetchFromGitHub {
owner = "repo-helper";
repo = "whey-pth";
tag = "v${version}";
hash = "sha256-A+bXB9F8FD+A1iRuETIxP12bkH/5NKcx01ERXJZAj+Q=";
};

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

build-system = [ setuptools ];

dependencies = [
dom-toml
whey
];

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

nativeCheckInputs = [
pytestCheckHook
];

# missing dependency coincidence
doCheck = false;

meta = {
description = "Extension to whey to support .pth files.";
homepage = "https://pypi.org/project/whey-pth";
description = "Extension to whey to support .pth files";
homepage = "https://github.com/repo-helper/whey-pth";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tyberius-prime ];
};
Expand Down

0 comments on commit a0059ad

Please sign in to comment.