Skip to content

Commit

Permalink
pythonPackages.whey, pythonPackages.whey-pth: init at 0.1.1
Browse files Browse the repository at this point in the history
Whey and whey-pth is being used as a python build-backend by a number of packages
on Pypi.
  • Loading branch information
TyberiusPrime committed Aug 29, 2024
1 parent 4dfe798 commit aae7408
Show file tree
Hide file tree
Showing 13 changed files with 491 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21347,6 +21347,11 @@
githubId = 1215104;
keys = [ { fingerprint = "B1FD 4E2A 84B2 2379 F4BF 2EF5 FE33 A228 2371 E831"; } ];
};
tyberius-prime = {
name = "Tyberius Prime";
github = "TyberiusPrime";
githubId = 1257580;
};
tylerjl = {
email = "[email protected]";
github = "tylerjl";
Expand Down
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/apeye-core/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
buildPythonPackage,
fetchPypi,
lib,
hatchling,
hatch-requirements-txt,
domdf-python-tools,
idna,
}:
buildPythonPackage rec {
pname = "apeye-core";
version = "1.1.5";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "apeye_core";
hash = "sha256-Xecu09AMybIP6lXlS3q49e+FAOszpTaLwWKlWF4jilU=";
};

build-system = [hatchling];

nativeBuildInputs = [
hatch-requirements-txt
];

dependencies = [
domdf-python-tools
idna
];

nativeCheckInputs = [];

meta = {
description = "Core (offline) functionality for the apeye library.";
homepage = "https://github.com/domdfcoding/apyey-core";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/consolekit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
buildPythonPackage,
fetchPypi,
lib,
flit-core,
click,
colorama,
deprecation-alias,
domdf-python-tools,
mistletoe,
typing-extensions,
}:
buildPythonPackage rec {
pname = "consolekit";
version = "1.7.0";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-Dqi84qeUGirw4z1ay3burLeHESeNK2DDPtPnpJzD/Qw=A";
};

build-system = [flit-core];

dependencies = [
click
colorama
deprecation-alias
domdf-python-tools
mistletoe
typing-extensions
];

nativeCheckInputs = [];

meta = {
description = "Additional utilities for click.";
homepage = "https://pypi.org/project/consolekit";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/deprecation-alias/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
buildPythonPackage,
fetchPypi,
lib,
setuptools,
deprecation,
packaging,
}:
buildPythonPackage rec {
pname = "deprecation-alias";
version = "0.3.3";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-5zJm1MhmwEAHnXoEf5KsLNRotGCAMkht8f/X7xR+ZRU=";
};

build-system = [setuptools];

dependencies = [
deprecation
packaging
];

nativeCheckInputs = [];

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

meta = {
description = "A wrapper around ‘deprecation’ providing support for deprecated aliases.";
homepage = "https://github.com/domdfcoding/deprecation-alias";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/dist-meta/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
buildPythonPackage,
fetchPypi,
lib,
setuptools,
domdf-python-tools,
handy-archives,
packaging,
}:
buildPythonPackage rec {
pname = "dist-meta";
version = "0.8.1";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-5zuHOwg2GDXiVZLU10Ep8DU7ykRR3RK/oQqvFK9GguQ=";
};

build-system = [setuptools];

dependencies = [
domdf-python-tools
handy-archives
packaging
];

nativeCheckInputs = [];

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


meta = {
description = "Parse and create Python distribution metadata.";
homepage = "https://github.com/repo-helper/dist-meta";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/dom-toml/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
buildPythonPackage,
fetchPypi,
lib,
flit-core,
setuptools,
domdf-python-tools,
tomli,
}:
buildPythonPackage rec {
pname = "dom-toml";
version = "2.0.0";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "dom_toml";
hash = "sha256-PAfoQ2U4mUl0Ensa4DdmHRp3mskVxE/Qazq1/hQP9Yk=";
};

build-system = [flit-core];

nativeBuildInputs = [setuptools];

dependencies = [
domdf-python-tools
tomli
];

nativeCheckInputs = [];

meta = {
description = "Dom's tools for Tom's Obvious, Minimal Language.";
homepage = "https://github.com/domdfcoding/dom_toml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/domdf-python-tools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
buildPythonPackage,
fetchPypi,
lib,
setuptools,
natsort,
typing-extensions,
}:
buildPythonPackage rec {
pname = "domdf-python-tools";
version = "3.9.0";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "domdf_python_tools";
hash = "sha256-H4qWlxF4MzpV4IPjVhDXaIzXYgrSuZeQFk4fwaNhTBg=";
};

build-system = [setuptools];

dependencies = [
natsort
typing-extensions
];

nativeCheckInputs = [];

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

meta = {
description = "Helpful functions for Python";
homepage = "https://github.com/domdfcoding/domdf_python_tools";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/handy-archives/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
buildPythonPackage,
fetchPypi,
lib,
flit-core,
}:
buildPythonPackage rec {
pname = "handy-archives";
version = "0.2.0";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "handy_archives";
hash = "sha256-+6IRAf2eKdXjtygjJhqq4GuTUGhvDSBneG1k3Oc+s/Y=";
};

build-system = [flit-core];

dependencies = [
];

nativeCheckInputs = [];

meta = {
description = "Some handy archive helpers for Python.";
homepage = "https://github.com/domdfcoding/handy-archives";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
50 changes: 50 additions & 0 deletions pkgs/development/python-modules/pyproject-parser/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
buildPythonPackage,
fetchPypi,
lib,
setuptools,
apeye-core,
attrs,
dom-toml,
domdf-python-tools,
natsort,
packaging,
shippinglabel,
typing-extensions,
}:
buildPythonPackage rec {
pname = "pyproject-parser";
version = "0.11.1";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-0ejtu6OlSA6w/z/+j2lDuikFGZh4r/HLBZhJAKZhggE=";
};

build-system = [setuptools];

dependencies = [
apeye-core
attrs
dom-toml
domdf-python-tools
natsort
packaging
shippinglabel
typing-extensions
];

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

meta = {
description = "Parser for ‘pyproject.toml’";
homepage = "https://github.com/repo-helper/pyproject-parser";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/shippinglabel/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
buildPythonPackage,
fetchPypi,
lib,
setuptools,
dist-meta,
dom-toml,
domdf-python-tools,
packaging,
typing-extensions,
}:
buildPythonPackage rec {
pname = "shippinglabel";
version = "2.0.0";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-hZYsK+IX/a4bZMtD+hMEYDnwgqhdkkEHkG0MPkAgy20=";
};

build-system = [setuptools];

dependencies = [
dist-meta
dom-toml
domdf-python-tools
packaging
typing-extensions
];

nativeCheckInputs = [];

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


meta = {
description = "Utilities for handling packages.";
homepage = "https://github.com/domdfcoding/shippinglabel";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [tyberius-prime];
};
}
Loading

0 comments on commit aae7408

Please sign in to comment.