From aae7408fff0652152a39b57ebd940ee57fbbc1c5 Mon Sep 17 00:00:00 2001 From: Florian Finkernagel Date: Wed, 17 Jul 2024 22:44:19 +0200 Subject: [PATCH] pythonPackages.whey, pythonPackages.whey-pth: init at 0.1.1 Whey and whey-pth is being used as a python build-backend by a number of packages on Pypi. --- maintainers/maintainer-list.nix | 5 ++ .../python-modules/apeye-core/default.nix | 40 +++++++++++++ .../python-modules/consolekit/default.nix | 42 ++++++++++++++ .../deprecation-alias/default.nix | 39 +++++++++++++ .../python-modules/dist-meta/default.nix | 42 ++++++++++++++ .../python-modules/dom-toml/default.nix | 38 +++++++++++++ .../domdf-python-tools/default.nix | 40 +++++++++++++ .../python-modules/handy-archives/default.nix | 31 ++++++++++ .../pyproject-parser/default.nix | 50 ++++++++++++++++ .../python-modules/shippinglabel/default.nix | 46 +++++++++++++++ .../python-modules/whey-pth/default.nix | 39 +++++++++++++ .../python-modules/whey/default.nix | 57 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +++++++ 13 files changed, 491 insertions(+) create mode 100644 pkgs/development/python-modules/apeye-core/default.nix create mode 100644 pkgs/development/python-modules/consolekit/default.nix create mode 100644 pkgs/development/python-modules/deprecation-alias/default.nix create mode 100644 pkgs/development/python-modules/dist-meta/default.nix create mode 100644 pkgs/development/python-modules/dom-toml/default.nix create mode 100644 pkgs/development/python-modules/domdf-python-tools/default.nix create mode 100644 pkgs/development/python-modules/handy-archives/default.nix create mode 100644 pkgs/development/python-modules/pyproject-parser/default.nix create mode 100644 pkgs/development/python-modules/shippinglabel/default.nix create mode 100644 pkgs/development/python-modules/whey-pth/default.nix create mode 100644 pkgs/development/python-modules/whey/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 19d8c8bb4d6a1cc..b959178f05a7e83 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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 = "tyler+nixpkgs@langlois.to"; github = "tylerjl"; diff --git a/pkgs/development/python-modules/apeye-core/default.nix b/pkgs/development/python-modules/apeye-core/default.nix new file mode 100644 index 000000000000000..45a922b21db4784 --- /dev/null +++ b/pkgs/development/python-modules/apeye-core/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/consolekit/default.nix b/pkgs/development/python-modules/consolekit/default.nix new file mode 100644 index 000000000000000..4bcb21e2f590249 --- /dev/null +++ b/pkgs/development/python-modules/consolekit/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/deprecation-alias/default.nix b/pkgs/development/python-modules/deprecation-alias/default.nix new file mode 100644 index 000000000000000..96de9aacc7e8229 --- /dev/null +++ b/pkgs/development/python-modules/deprecation-alias/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/dist-meta/default.nix b/pkgs/development/python-modules/dist-meta/default.nix new file mode 100644 index 000000000000000..4fcbc757c28c11e --- /dev/null +++ b/pkgs/development/python-modules/dist-meta/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/dom-toml/default.nix b/pkgs/development/python-modules/dom-toml/default.nix new file mode 100644 index 000000000000000..bfb763ab781ccef --- /dev/null +++ b/pkgs/development/python-modules/dom-toml/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/domdf-python-tools/default.nix b/pkgs/development/python-modules/domdf-python-tools/default.nix new file mode 100644 index 000000000000000..5ce23c53d150ab9 --- /dev/null +++ b/pkgs/development/python-modules/domdf-python-tools/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/handy-archives/default.nix b/pkgs/development/python-modules/handy-archives/default.nix new file mode 100644 index 000000000000000..a66a6d94197e6c7 --- /dev/null +++ b/pkgs/development/python-modules/handy-archives/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/pyproject-parser/default.nix b/pkgs/development/python-modules/pyproject-parser/default.nix new file mode 100644 index 000000000000000..835ef09b9c96d92 --- /dev/null +++ b/pkgs/development/python-modules/pyproject-parser/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/shippinglabel/default.nix b/pkgs/development/python-modules/shippinglabel/default.nix new file mode 100644 index 000000000000000..33b16d3ca8d07f6 --- /dev/null +++ b/pkgs/development/python-modules/shippinglabel/default.nix @@ -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]; + }; +} diff --git a/pkgs/development/python-modules/whey-pth/default.nix b/pkgs/development/python-modules/whey-pth/default.nix new file mode 100644 index 000000000000000..2b2b5d7e24b9aa8 --- /dev/null +++ b/pkgs/development/python-modules/whey-pth/default.nix @@ -0,0 +1,39 @@ +{ + buildPythonPackage, + fetchPypi, + lib, + setuptools, + dom-toml, + whey, + }: +buildPythonPackage rec { + pname = "whey-pth"; + version = "0.0.6"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-CIpgqzNXW3VpS+k6BCpc2DNyqwgt/Af3ms59AH/V5KM="; + }; + + build-system = [setuptools]; + + dependencies = [ + dom-toml + whey + ]; + + nativeCheckInputs = []; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"' + ''; + + meta = { + description = "Extension to whey to support .pth files."; + homepage = "https://pypi.org/project/whey-pth"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [tyberius-prime]; + }; +} diff --git a/pkgs/development/python-modules/whey/default.nix b/pkgs/development/python-modules/whey/default.nix new file mode 100644 index 000000000000000..6198dfb14c52536 --- /dev/null +++ b/pkgs/development/python-modules/whey/default.nix @@ -0,0 +1,57 @@ +{ + buildPythonPackage, + fetchPypi, + lib, + setuptools, + attrs, + click, + consolekit, + dist-meta, + dom-toml, + domdf-python-tools, + handy-archives, + natsort, + packaging, + pyproject-parser, + shippinglabel, +}: +buildPythonPackage rec { + pname = "whey"; + version = "0.1.1"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-l72fjczuuDXg/cDiqJ7roNVm4X+au+1u4AA8Szs1bNo="; + }; + + build-system = [setuptools]; + + dependencies = [ + attrs + click + consolekit + dist-meta + dom-toml + domdf-python-tools + handy-archives + natsort + packaging + pyproject-parser + shippinglabel + ]; + + nativeCheckInputs = []; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"' + ''; + + meta = { + description = "A simple Python wheel builder for simple projects."; + homepage = "https://pypi.org/project/whey"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [tyberius-prime]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5ca278ddb429ad8..373c9589285838f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -675,6 +675,8 @@ self: super: with self; { apcaccess = callPackage ../development/python-modules/apcaccess { }; + apeye-core = callPackage ../development/python-modules/apeye-core { }; + apipkg = callPackage ../development/python-modules/apipkg { }; apischema = callPackage ../development/python-modules/apischema { }; @@ -2073,6 +2075,8 @@ self: super: with self; { commitizen = callPackage ../development/python-modules/commitizen { }; + consolekit = callPackage ../development/python-modules/consolekit { }; + connect-box = callPackage ../development/python-modules/connect-box { }; connection-pool = callPackage ../development/python-modules/connection-pool { }; @@ -3069,6 +3073,8 @@ self: super: with self; { deprecation = callPackage ../development/python-modules/deprecation { }; + deprecation-alias = callPackage ../development/python-modules/deprecation-alias { }; + derpconf = callPackage ../development/python-modules/derpconf { }; desktop-entry-lib = callPackage ../development/python-modules/desktop-entry-lib { }; @@ -3219,6 +3225,8 @@ self: super: with self; { dissononce = callPackage ../development/python-modules/dissononce { }; + dist-meta = callPackage ../development/python-modules/dist-meta { }; + distlib = callPackage ../development/python-modules/distlib { }; distorm3 = callPackage ../development/python-modules/distorm3 { }; @@ -3629,6 +3637,10 @@ self: super: with self; { dokuwiki = callPackage ../development/python-modules/dokuwiki { }; + dom-toml = callPackage ../development/python-modules/dom-toml { }; + + domdf-python-tools = callPackage ../development/python-modules/domdf-python-tools { }; + domeneshop = callPackage ../development/python-modules/domeneshop { }; dominate = callPackage ../development/python-modules/dominate { }; @@ -5501,6 +5513,8 @@ self: super: with self; { hankel = callPackage ../development/python-modules/hankel { }; + handy-archives = callPackage ../development/python-modules/handy-archives { }; + hap-python = callPackage ../development/python-modules/hap-python { }; hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { }; @@ -10185,6 +10199,8 @@ self: super: with self; { pyproject-hooks = callPackage ../development/python-modules/pyproject-hooks { }; + pyproject-parser = callPackage ../development/python-modules/pyproject-parser { }; + pypsrp = callPackage ../development/python-modules/pypsrp { }; phpserialize = callPackage ../development/python-modules/phpserialize { }; @@ -14434,6 +14450,8 @@ self: super: with self; { shippai = callPackage ../development/python-modules/shippai { }; + shippinglabel = callPackage ../development/python-modules/shippinglabel { }; + shiv = callPackage ../development/python-modules/shiv { }; shodan = callPackage ../development/python-modules/shodan { }; @@ -17580,6 +17598,10 @@ self: super: with self; { whenever = callPackage ../development/python-modules/whenever { }; + whey = callPackage ../development/python-modules/whey { }; + + whey-pth = callPackage ../development/python-modules/whey-pth { }; + whichcraft = callPackage ../development/python-modules/whichcraft { }; whirlpool-sixth-sense = callPackage ../development/python-modules/whirlpool-sixth-sense { };