Merge pull request #254309 from pbsds/flit-prune

python3Packages.flitBuildHook: remove
This commit is contained in:
Frederik Rietdijk 2023-09-25 11:34:15 +02:00 committed by GitHub
commit f4822bb295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
74 changed files with 320 additions and 161 deletions

View File

@ -459,7 +459,6 @@ are used in [`buildPythonPackage`](#buildpythonpackage-function).
with the `eggInstallHook` with the `eggInstallHook`
- `eggBuildHook` to skip building for eggs. - `eggBuildHook` to skip building for eggs.
- `eggInstallHook` to install eggs. - `eggInstallHook` to install eggs.
- `flitBuildHook` to build a wheel using `flit`.
- `pipBuildHook` to build a wheel using `pip` and PEP 517. Note a build system - `pipBuildHook` to build a wheel using `pip` and PEP 517. Note a build system
(e.g. `setuptools` or `flit`) should still be added as `nativeBuildInput`. (e.g. `setuptools` or `flit`) should still be added as `nativeBuildInput`.
- `pypaBuildHook` to build a wheel using - `pypaBuildHook` to build a wheel using

View File

@ -347,4 +347,6 @@ The module update takes care of the new config syntax and the data itself (user
can automatically format the root device by setting can automatically format the root device by setting
`virtualisation.fileSystems."/".autoFormat = true;`. `virtualisation.fileSystems."/".autoFormat = true;`.
- `python3.pkgs.flitBuildHook` has been removed. Use `flit-core` and `format = "pyproject"` instead.
- The `electron` packages now places its application files in `$out/libexec/electron` instead of `$out/lib/electron`. Packages using electron-builder will fail to build and need to be adjusted by changing `lib` to `libexec`. - The `electron` packages now places its application files in `$out/libexec/electron` instead of `$out/lib/electron`. Packages using electron-builder will fail to build and need to be adjusted by changing `lib` to `libexec`.

View File

@ -44,7 +44,7 @@ in
python.pkgs.buildPythonApplication rec { python.pkgs.buildPythonApplication rec {
pname = "sublime-music"; pname = "sublime-music";
version = "0.12.0"; version = "0.12.0";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sublime-music"; owner = "sublime-music";
@ -54,6 +54,7 @@ python.pkgs.buildPythonApplication rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
python.pkgs.flit-core
gobject-introspection gobject-introspection
wrapGAppsHook wrapGAppsHook
]; ];

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonApplication , buildPythonApplication
, fetchFromGitHub , fetchFromGitHub
, flit
, aiohttp , aiohttp
, beautifulsoup4 , beautifulsoup4
}: }:
@ -8,7 +9,7 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "cambrinary"; pname = "cambrinary";
version = "unstable-2023-07-16"; version = "unstable-2023-07-16";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xueyuanl"; owner = "xueyuanl";
@ -17,6 +18,10 @@ buildPythonApplication rec {
hash = "sha256-wDcvpKAY/6lBjO5h3qKH3+Y2G2gm7spcKCXFMt/bAtE="; hash = "sha256-wDcvpKAY/6lBjO5h3qKH3+Y2G2gm7spcKCXFMt/bAtE=";
}; };
nativeBuildInputs = [
flit
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
beautifulsoup4 beautifulsoup4

View File

@ -32,7 +32,7 @@ in
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
pname = "offpunk"; pname = "offpunk";
version = "1.10"; version = "1.10";
format = "flit"; format = "pyproject";
disabled = python3Packages.pythonOlder "3.7"; disabled = python3Packages.pythonOlder "3.7";
@ -43,7 +43,7 @@ python3Packages.buildPythonPackage rec {
hash = "sha256-+jGKPPnKZHn+l6VAwuae6kICwR7ymkYJjsM2OHQAEmU="; hash = "sha256-+jGKPPnKZHn+l6VAwuae6kICwR7ymkYJjsM2OHQAEmU=";
}; };
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ python3Packages.flit-core installShellFiles ];
propagatedBuildInputs = otherDependencies ++ pythonDependencies; propagatedBuildInputs = otherDependencies ++ pythonDependencies;
postInstall = '' postInstall = ''

View File

@ -10,13 +10,14 @@
, scons , scons
, setuptools , setuptools
, tinyprog , tinyprog
, flit-core
, pytestCheckHook , pytestCheckHook
}: }:
buildPythonApplication rec { buildPythonApplication rec {
pname = "apio"; pname = "apio";
version = "0.8.1"; version = "0.8.1";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FPGAwars"; owner = "FPGAwars";
@ -47,6 +48,10 @@ buildPythonApplication rec {
'version = semantic_version.Version(pkg_version.replace(".dev", "-dev"))' 'version = semantic_version.Version(pkg_version.replace(".dev", "-dev"))'
''; '';
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
click click
semantic-version semantic-version

View File

@ -45,15 +45,6 @@ in {
propagatedBuildInputs = [ ]; propagatedBuildInputs = [ ];
} ./egg-unpack-hook.sh) {}; } ./egg-unpack-hook.sh) {};
flitBuildHook = callPackage ({ makePythonHook, flit }:
makePythonHook {
name = "flit-build-hook";
propagatedBuildInputs = [ flit ];
substitutions = {
inherit pythonInterpreter;
};
} ./flit-build-hook.sh) {};
pipBuildHook = callPackage ({ makePythonHook, pip, wheel }: pipBuildHook = callPackage ({ makePythonHook, pip, wheel }:
makePythonHook { makePythonHook {
name = "pip-build-hook.sh"; name = "pip-build-hook.sh";

View File

@ -1,15 +0,0 @@
# Setup hook for flit
echo "Sourcing flit-build-hook"
flitBuildPhase () {
echo "Executing flitBuildPhase"
runHook preBuild
@pythonInterpreter@ -m flit build --format wheel
runHook postBuild
echo "Finished executing flitBuildPhase"
}
if [ -z "${dontUseFlitBuild-}" ] && [ -z "${buildPhase-}" ]; then
echo "Using flitBuildPhase"
buildPhase=flitBuildPhase
fi

View File

@ -11,7 +11,6 @@
, namePrefix , namePrefix
, update-python-libraries , update-python-libraries
, setuptools , setuptools
, flitBuildHook
, pypaBuildHook , pypaBuildHook
, pypaInstallHook , pypaInstallHook
, pythonCatchConflictsHook , pythonCatchConflictsHook
@ -90,7 +89,6 @@
# Several package formats are supported. # Several package formats are supported.
# "setuptools" : Install a common setuptools/distutils based package. This builds a wheel. # "setuptools" : Install a common setuptools/distutils based package. This builds a wheel.
# "wheel" : Install from a pre-compiled wheel. # "wheel" : Install from a pre-compiled wheel.
# "flit" : Install a flit package. This builds a wheel.
# "pyproject": Install a package using a ``pyproject.toml`` file (PEP517). This builds a wheel. # "pyproject": Install a package using a ``pyproject.toml`` file (PEP517). This builds a wheel.
# "egg": Install a package from an egg. # "egg": Install a package from an egg.
# "other" : Provide your own buildPhase and installPhase. # "other" : Provide your own buildPhase and installPhase.
@ -122,7 +120,7 @@ let
else else
"setuptools"; "setuptools";
withDistOutput = lib.elem format' ["pyproject" "setuptools" "flit" "wheel"]; withDistOutput = lib.elem format' ["pyproject" "setuptools" "wheel"];
name_ = name; name_ = name;
@ -222,8 +220,6 @@ let
unzip unzip
] ++ lib.optionals (format' == "setuptools") [ ] ++ lib.optionals (format' == "setuptools") [
setuptoolsBuildHook setuptoolsBuildHook
] ++ lib.optionals (format' == "flit") [
flitBuildHook
] ++ lib.optionals (format' == "pyproject") [( ] ++ lib.optionals (format' == "pyproject") [(
if isBootstrapPackage then if isBootstrapPackage then
pypaBuildHook.override { pypaBuildHook.override {

View File

@ -98,12 +98,10 @@
, ... } @ attrs: , ... } @ attrs:
assert lib.assertMsg (format != "flit") "flit is not a supported Python 2 format";
let let
inherit (python) stdenv; inherit (python) stdenv;
withDistOutput = lib.elem format ["pyproject" "setuptools" "flit" "wheel"]; withDistOutput = lib.elem format ["pyproject" "setuptools" "wheel"];
name_ = name; name_ = name;
@ -171,7 +169,7 @@ let
nativeBuildInputs = [ nativeBuildInputs = [
python python
wrapPython wrapPython
ensureNewerSourcesForZipFilesHook # move to wheel installer (pip) or builder (setuptools, flit, ...)? ensureNewerSourcesForZipFilesHook # move to wheel installer (pip) or builder (setuptools, ...)?
pythonRemoveTestsDirHook pythonRemoveTestsDirHook
] ++ lib.optionals catchConflicts [ ] ++ lib.optionals catchConflicts [
pythonCatchConflictsHook pythonCatchConflictsHook

View File

@ -2,6 +2,7 @@
, aiohttp , aiohttp
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, flit
, pytest-aiohttp , pytest-aiohttp
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
@ -11,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohttp-remotes"; pname = "aiohttp-remotes";
version = "1.2.0"; version = "1.2.0";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -21,6 +22,10 @@ buildPythonPackage rec {
sha256 = "f95c3a6be5e2de746a85ce9af49ec548da6db8378d7e81bb171ec77b13562a6c"; sha256 = "f95c3a6be5e2de746a85ce9af49ec548da6db8378d7e81bb171ec77b13562a6c";
}; };
nativeBuildInputs = [
flit
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
] ++ lib.optionals (pythonOlder "3.7") [ ] ++ lib.optionals (pythonOlder "3.7") [

View File

@ -8,7 +8,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioprocessing"; pname = "aioprocessing";
version = "2.0.1"; version = "2.0.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";

View File

@ -2,6 +2,8 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
, fetchpatch
, flit-core
, pygments , pygments
, pytestCheckHook , pytestCheckHook
, uvloop , uvloop
@ -10,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiorun"; pname = "aiorun";
version = "2023.7.2"; version = "2023.7.2";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,6 +23,18 @@ buildPythonPackage rec {
hash = "sha256-3AGsT8IUNi5SZHBsBfd7akj8eQ+xb0mrR7ydIr3T8gs="; hash = "sha256-3AGsT8IUNi5SZHBsBfd7akj8eQ+xb0mrR7ydIr3T8gs=";
}; };
patches = [
# Raise flit-core version constrains
(fetchpatch { # https://github.com/cjrh/aiorun/pull/85
url = "https://github.com/cjrh/aiorun/commit/a0c027ea331167712738e35ca70fefcd794e16d5.patch";
hash = "sha256-M1rcrkdFcoFa3IncPnJaRhnXbelyk56QnMGtmgB6bvk=";
})
];
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
pygments pygments
]; ];

View File

@ -6,6 +6,7 @@
, wheel , wheel
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, flit-core
, isPy3k , isPy3k
, lib , lib
, stdenv , stdenv
@ -15,13 +16,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "argon2-cffi"; pname = "argon2-cffi";
version = "21.3.0"; version = "21.3.0";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "d384164d944190a7dd7ef22c6aa3ff197da12962bd04b17f64d4e93d934dba5b"; sha256 = "d384164d944190a7dd7ef22c6aa3ff197da12962bd04b17f64d4e93d934dba5b";
}; };
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ cffi six argon2-cffi-bindings ] propagatedBuildInputs = [ cffi six argon2-cffi-bindings ]
++ lib.optional (!isPy3k) enum34; ++ lib.optional (!isPy3k) enum34;

View File

@ -1,13 +1,14 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitLab , fetchFromGitLab
, flit-core
, python , python
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "asyncinotify"; pname = "asyncinotify";
version = "4.0.2"; version = "4.0.2";
format = "flit"; format = "pyproject";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "Taywee"; owner = "Taywee";
@ -16,6 +17,10 @@ buildPythonPackage rec {
hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw="; hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw=";
}; };
nativeBuildInputs = [
flit-core
];
checkPhase = '' checkPhase = ''
${python.pythonForBuild.interpreter} ${src}/test.py ${python.pythonForBuild.interpreter} ${src}/test.py
''; '';

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, typing-extensions , typing-extensions
, flit-core
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
}: }:
@ -9,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "asyncstdlib"; pname = "asyncstdlib";
version = "3.10.8"; version = "3.10.8";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -20,6 +21,10 @@ buildPythonPackage rec {
hash = "sha256-7HQFyIR+NWRzbFkzkZiuEQotZfCXpCzrWfWIFg1lWv4="; hash = "sha256-7HQFyIR+NWRzbFkzkZiuEQotZfCXpCzrWfWIFg1lWv4=";
}; };
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
typing-extensions typing-extensions
]; ];

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch , fetchpatch
, flit-core
, ipykernel , ipykernel
, isPy27 , isPy27
, python , python
@ -12,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bash_kernel"; pname = "bash_kernel";
version = "0.9.0"; version = "0.9.0";
format = "flit"; format = "pyproject";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
@ -33,6 +34,8 @@ buildPythonPackage rec {
--replace "\"bash\"" "'${bash}/bin/bash'" --replace "\"bash\"" "'${bash}/bin/bash'"
''; '';
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ ipykernel pexpect ]; propagatedBuildInputs = [ ipykernel pexpect ];
# no tests # no tests

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, flit-core
, psutil , psutil
, pytestCheckHook , pytestCheckHook
, pyyaml , pyyaml
@ -11,13 +12,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "circus"; pname = "circus";
version = "0.18.0"; version = "0.18.0";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-GTzoIk4GjO1mckz0gxBvtmdLUaV1g6waDn7Xp+6Mcas="; hash = "sha256-GTzoIk4GjO1mckz0gxBvtmdLUaV1g6waDn7Xp+6Mcas=";
}; };
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
psutil psutil
pyzmq pyzmq

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "confuse"; pname = "confuse";
version = "1.7.0"; version = "1.7.0";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ecs-logging"; pname = "ecs-logging";
version = "2.1.0"; version = "2.1.0";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, flit-core
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, borgbackup , borgbackup
@ -20,7 +21,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "emborg"; pname = "emborg";
version = "1.37"; version = "1.37";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -31,6 +32,10 @@ buildPythonPackage rec {
hash = "sha256-bHYs+vlNku/T5Hb9u77Xml9/FNj5vgqPeXSzcilsS+I="; hash = "sha256-bHYs+vlNku/T5Hb9u77Xml9/FNj5vgqPeXSzcilsS+I=";
}; };
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
appdirs appdirs
arrow arrow

View File

@ -1,9 +1,9 @@
{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut, bleach, markdown }: { lib, buildPythonPackage, pythonOlder, fetchFromSourcehut, flit-core, bleach, markdown }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "formbox"; pname = "formbox";
version = "0.4.1"; version = "0.4.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromSourcehut { src = fetchFromSourcehut {
@ -13,6 +13,7 @@ buildPythonPackage rec {
hash = "sha256-zOvXmSeBiwc0Z5mRMwMsHLU3A/iP7rpjXm0T0I2gUTk="; hash = "sha256-zOvXmSeBiwc0Z5mRMwMsHLU3A/iP7rpjXm0T0I2gUTk=";
}; };
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ bleach markdown ]; propagatedBuildInputs = [ bleach markdown ];
doCheck = false; # there's no test doCheck = false; # there's no test
pythonImportsCheck = [ "formbox" ]; pythonImportsCheck = [ "formbox" ];

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pythonOlder , pythonOlder
, flit
, uritemplate , uritemplate
, pyjwt , pyjwt
, pytestCheckHook , pytestCheckHook
@ -15,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "gidgethub"; pname = "gidgethub";
version = "5.3.0"; version = "5.3.0";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -24,6 +25,10 @@ buildPythonPackage rec {
hash = "sha256-ns59N/vOuBm4BWDn7Vj5NuSKZdN+xfVtt5FFFWtCaiU="; hash = "sha256-ns59N/vOuBm4BWDn7Vj5NuSKZdN+xfVtt5FFFWtCaiU=";
}; };
nativeBuildInputs = [
flit
];
propagatedBuildInputs = [ propagatedBuildInputs = [
uritemplate uritemplate
pyjwt pyjwt

View File

@ -1,7 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flitBuildHook , flit-core
, google-auth , google-auth
, google-auth-oauthlib , google-auth-oauthlib
, pytest-vcr , pytest-vcr
@ -25,7 +25,7 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
flitBuildHook flit-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,10 +1,10 @@
{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut { lib, buildPythonPackage, pythonOlder, fetchFromSourcehut
, kubo, packaging, tomli }: , kubo, packaging, tomli, flit-core }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ipwhl"; pname = "ipwhl";
version = "1.1.0"; version = "1.1.0";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromSourcehut { src = fetchFromSourcehut {
@ -14,6 +14,7 @@ buildPythonPackage rec {
hash = "sha256-YaIYcoUnbiv9wUOFIzGj2sWGbh7NsqRQcqOR2X6+QZA="; hash = "sha256-YaIYcoUnbiv9wUOFIzGj2sWGbh7NsqRQcqOR2X6+QZA=";
}; };
nativeBuildInputs = [ flit-core ];
buildInputs = [ kubo ]; buildInputs = [ kubo ];
propagatedBuildInputs = [ packaging tomli ]; propagatedBuildInputs = [ packaging tomli ];
doCheck = false; # there's no test doCheck = false; # there's no test

View File

@ -28,7 +28,7 @@ buildPythonPackage rec {
pname = "jupyter-book"; pname = "jupyter-book";
version = "0.15.1"; version = "0.15.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";

View File

@ -16,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "jupyter-cache"; pname = "jupyter-cache";
version = "0.6.1"; version = "0.6.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";

View File

@ -1,9 +1,9 @@
{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut }: { lib, buildPythonPackage, pythonOlder, fetchFromSourcehut, flit-core }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "loca"; pname = "loca";
version = "2.0.1"; version = "2.0.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromSourcehut { src = fetchFromSourcehut {
@ -13,6 +13,10 @@ buildPythonPackage rec {
sha256 = "1l6jimw3wd81nz1jrzsfw1zzsdm0jm998xlddcqaq0h38sx69w8g"; sha256 = "1l6jimw3wd81nz1jrzsfw1zzsdm0jm998xlddcqaq0h38sx69w8g";
}; };
nativeBuildInputs = [
flit-core
];
doCheck = false; # all checks are static analyses doCheck = false; # all checks are static analyses
pythonImportsCheck = [ "loca" ]; pythonImportsCheck = [ "loca" ];

View File

@ -2,18 +2,23 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pytestCheckHook , pytestCheckHook
, hatchling
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "looseversion"; pname = "looseversion";
version = "1.3.0"; version = "1.3.0";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit version pname; inherit version pname;
sha256 = "sha256-695l8/a7lTGoEBbG/vPrlaYRga3Ee3+UnpwOpHkRZp4="; sha256 = "sha256-695l8/a7lTGoEBbG/vPrlaYRga3Ee3+UnpwOpHkRZp4=";
}; };
nativeBuildInputs = [
hatchling
];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
]; ];

View File

@ -24,7 +24,7 @@ let
in python.pkgs.buildPythonPackage rec { in python.pkgs.buildPythonPackage rec {
pname = "mdformat-admon"; pname = "mdformat-admon";
version = "1.0.2"; version = "1.0.2";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -35,6 +35,10 @@ in python.pkgs.buildPythonPackage rec {
hash = "sha256-33Q3Re/axnoOHZ9XYA32mmK+efsSelJXW8sD7C1M/jU="; hash = "sha256-33Q3Re/axnoOHZ9XYA32mmK+efsSelJXW8sD7C1M/jU=";
}; };
nativeBuildInputs = with python.pkgs; [
flit-core
];
buildInputs = with python.pkgs; [ buildInputs = with python.pkgs; [
mdformat mdformat
]; ];

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core
, linkify-it-py , linkify-it-py
, markdown-it-py , markdown-it-py
, mdformat , mdformat
@ -11,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mdformat-footnote"; pname = "mdformat-footnote";
version = "0.1.1"; version = "0.1.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -22,6 +23,10 @@ buildPythonPackage rec {
hash = "sha256-DUCBWcmB5i6/HkqxjlU3aTRO7i0n2sj+e/doKB8ffeo="; hash = "sha256-DUCBWcmB5i6/HkqxjlU3aTRO7i0n2sj+e/doKB8ffeo=";
}; };
nativeBuildInputs = [
flit-core
];
buildInputs = [ buildInputs = [
mdformat mdformat
mdit-py-plugins mdit-py-plugins

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core
, linkify-it-py , linkify-it-py
, markdown-it-py , markdown-it-py
, mdformat , mdformat
@ -12,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mdformat-frontmatter"; pname = "mdformat-frontmatter";
version = "2.0.1"; version = "2.0.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -23,6 +24,10 @@ buildPythonPackage rec {
hash = "sha256-PhT5whtvvcYSs5gHQEsIvV1evhx7jR+3DWFMHrF0uMw="; hash = "sha256-PhT5whtvvcYSs5gHQEsIvV1evhx7jR+3DWFMHrF0uMw=";
}; };
nativeBuildInputs = [
flit-core
];
buildInputs = [ buildInputs = [
mdformat mdformat
mdit-py-plugins mdit-py-plugins

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core
, mdformat , mdformat
, mdformat-gfm , mdformat-gfm
, mdit-py-plugins , mdit-py-plugins
@ -10,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mdformat-mkdocs"; pname = "mdformat-mkdocs";
version = "1.0.4"; version = "1.0.4";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,6 +22,10 @@ buildPythonPackage rec {
hash = "sha256-mGWeG8clWJ7obsvO+gYaVzfAyDOh9HNdyWW5KgOgfmM="; hash = "sha256-mGWeG8clWJ7obsvO+gYaVzfAyDOh9HNdyWW5KgOgfmM=";
}; };
nativeBuildInputs = [
flit-core
];
buildInputs = [ buildInputs = [
mdformat mdformat
mdformat-gfm mdformat-gfm

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core
, mdformat , mdformat
, mdit-py-plugins , mdit-py-plugins
, pythonOlder , pythonOlder
@ -9,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mdformat-simple-breaks"; pname = "mdformat-simple-breaks";
version = "0.0.1"; version = "0.0.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -20,6 +21,10 @@ buildPythonPackage rec {
hash = "sha256-4lJHB4r9lI2uGJ/BmFFc92sumTRKBBwiRmGBdQkzfd0="; hash = "sha256-4lJHB4r9lI2uGJ/BmFFc92sumTRKBBwiRmGBdQkzfd0=";
}; };
nativeBuildInputs = [
flit-core
];
buildInputs = [ buildInputs = [
mdformat mdformat
]; ];

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core
, mdformat , mdformat
, mdit-py-plugins , mdit-py-plugins
, pytestCheckHook , pytestCheckHook
@ -10,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mdformat-tables"; pname = "mdformat-tables";
version = "0.4.1"; version = "0.4.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,6 +22,10 @@ buildPythonPackage rec {
hash = "sha256-Q61GmaRxjxJh9GjyR8QCZOH0njFUtAWihZ9lFQJ2nQQ="; hash = "sha256-Q61GmaRxjxJh9GjyR8QCZOH0njFUtAWihZ9lFQJ2nQQ=";
}; };
nativeBuildInputs = [
flit-core
];
buildInputs = [ buildInputs = [
mdformat mdformat
]; ];

View File

@ -11,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mediafile"; pname = "mediafile";
version = "0.10.1"; version = "0.10.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pythonOlder , pythonOlder
, flit-core
, ipython , ipython
, matplotlib , matplotlib
, numpy , numpy
@ -11,6 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mediapy"; pname = "mediapy";
version = "1.1.8"; version = "1.1.8";
format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -19,9 +21,10 @@ buildPythonPackage rec {
hash = "sha256-mVhBM+NQEkLYByp/kCPFJCAY26La5CWjcPl6PgclA9A="; hash = "sha256-mVhBM+NQEkLYByp/kCPFJCAY26La5CWjcPl6PgclA9A=";
}; };
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ ipython matplotlib numpy pillow ]; propagatedBuildInputs = [ ipython matplotlib numpy pillow ];
format = "flit";
pythonImportsCheck = [ "mediapy" ]; pythonImportsCheck = [ "mediapy" ];

View File

@ -10,14 +10,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "more-itertools"; pname = "more-itertools";
version = "9.1.0"; version = "9.1.0";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-yrqjQa0DieqDwXqUVmpTrkydBzSYYeyxTcbQNFz5rF0="; hash = "sha256-yrqjQa0DieqDwXqUVmpTrkydBzSYYeyxTcbQNFz5rF0=";
}; };
nativeBuildInouts = [ nativeBuildInputs = [
flit-core flit-core
]; ];

View File

@ -22,7 +22,7 @@ buildPythonPackage rec {
pname = "myst-nb"; pname = "myst-nb";
version = "0.17.2"; version = "0.17.2";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";

View File

@ -2,7 +2,7 @@
, buildPythonPackage , buildPythonPackage
, docopt , docopt
, fetchFromGitHub , fetchFromGitHub
, flitBuildHook , flit-core
, hypothesis , hypothesis
, inform , inform
, nestedtext , nestedtext
@ -27,7 +27,7 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
flitBuildHook flit-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,15 +1,19 @@
{ lib, buildPythonPackage, fetchPypi, fire, tqdm, intelhex, libusb1 }: { lib, buildPythonPackage, fetchPypi, flit-core, fire, tqdm, intelhex, libusb1 }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "nkdfu"; pname = "nkdfu";
version = "0.2"; version = "0.2";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg="; hash = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg=";
}; };
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
fire fire
tqdm tqdm

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch , fetchpatch
, flit-core
, pytestCheckHook , pytestCheckHook
, coveralls , coveralls
, numpy , numpy
@ -16,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "parametrize-from-file"; pname = "parametrize-from-file";
version = "0.17.0"; version = "0.17.0";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
@ -40,6 +41,10 @@ buildPythonPackage rec {
--replace "more_itertools~=8.10" "more_itertools" --replace "more_itertools~=8.10" "more_itertools"
''; '';
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [ nativeCheckInputs = [
numpy numpy
pytestCheckHook pytestCheckHook

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pep440"; pname = "pep440";
version = "0.1.2"; version = "0.1.2";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";

View File

@ -1,13 +1,15 @@
{ buildPythonPackage { buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch
, lib , lib
, nix-update-script , nix-update-script
, pythonOlder , pythonOlder
, flit-core
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pkgutil-resolve-name"; pname = "pkgutil-resolve-name";
version = "1.3.10"; version = "1.3.10";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -17,6 +19,18 @@ buildPythonPackage rec {
hash = "sha256-NX1snmp1VlPP14iTgXwIU682XdUeyX89NYqBk3O70XQ="; hash = "sha256-NX1snmp1VlPP14iTgXwIU682XdUeyX89NYqBk3O70XQ=";
}; };
patches = [
# Raise flit-core version constrains
(fetchpatch { # https://github.com/graingert/pkgutil-resolve-name/pull/5
url = "https://github.com/graingert/pkgutil-resolve-name/commit/042834290c735fa836bb308ce9e93c9f64d67cbe.patch";
hash = "sha256-M1rcrkdFcoFa3IncPnJaRhnXbelyk56QnMGtmgB6bvk=";
})
];
nativeBuildInputs = [
flit-core
];
# has no tests # has no tests
doCheck = false; doCheck = false;

View File

@ -1,10 +1,10 @@
{ lib, buildPythonPackage, fetchFromGitHub }: { lib, buildPythonPackage, fetchFromGitHub, flit-core }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-celery"; pname = "pytest-celery";
version = "0.1.0"; version = "0.1.0";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "celery"; owner = "celery";
@ -19,6 +19,10 @@ buildPythonPackage rec {
--replace '"celery >= 4.4.0"' "" --replace '"celery >= 4.4.0"' ""
''; '';
nativeBuildInputs = [
flit-core
];
# This package has nothing to test or import. # This package has nothing to test or import.
doCheck = false; doCheck = false;

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, flit-core
, pytest , pytest
, pytestCheckHook , pytestCheckHook
}: }:
@ -8,14 +9,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-check"; pname = "pytest-check";
version = "2.1.4"; version = "2.1.4";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-AbN/1wPaD6ZntwF68fBGDHRKhfHuh2de4+D5Ssw98XI="; hash = "sha256-AbN/1wPaD6ZntwF68fBGDHRKhfHuh2de4+D5Ssw98XI=";
}; };
buildInputs = [ nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
pytest pytest
]; ];

View File

@ -2,6 +2,7 @@
, fetchFromGitHub , fetchFromGitHub
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, flit-core
, py-cid , py-cid
, pytestCheckHook , pytestCheckHook
, pytest-cov , pytest-cov
@ -10,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-cid"; pname = "pytest-cid";
version = "1.1.2"; version = "1.1.2";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -25,6 +26,10 @@ buildPythonPackage rec {
--replace "pytest >= 5.0, < 7.0" "pytest >= 5.0" --replace "pytest >= 5.0, < 7.0" "pytest >= 5.0"
''; '';
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
py-cid py-cid
]; ];

View File

@ -17,7 +17,7 @@ buildPythonPackage rec {
hash = "sha256-Q7wWoggJN2w2a2umQHx5TsVcugqpovBEtOKruNMZQ8A="; hash = "sha256-Q7wWoggJN2w2a2umQHx5TsVcugqpovBEtOKruNMZQ8A=";
}; };
format = "flit"; format = "pyproject";
nativeBuildInputs = [ flit-core ]; nativeBuildInputs = [ flit-core ];

View File

@ -1,14 +1,14 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core , flit
, pytest , pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-raisin"; pname = "pytest-raisin";
version = "0.4"; version = "0.4";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wimglenn"; owner = "wimglenn";
@ -18,7 +18,7 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
flit-core flit
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,9 +1,9 @@
{ lib, buildPythonPackage, fetchFromGitHub, sphinx }: { lib, buildPythonPackage, fetchFromGitHub, flit-core, sphinx }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "python_docs_theme"; pname = "python_docs_theme";
version = "2023.7"; version = "2023.7";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "python"; owner = "python";
@ -12,6 +12,8 @@ buildPythonPackage rec {
sha256 = "sha256-43/TlgYm7Q4ZtY25MiLU9fd1atDmiDUeUK6AYfDfmag="; sha256 = "sha256-43/TlgYm7Q4ZtY25MiLU9fd1atDmiDUeUK6AYfDfmag=";
}; };
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ sphinx ]; propagatedBuildInputs = [ sphinx ];
pythonImportsCheck = [ "python_docs_theme" ]; pythonImportsCheck = [ "python_docs_theme" ];

View File

@ -3,6 +3,7 @@
, fetchFromGitHub , fetchFromGitHub
, buildPythonPackage , buildPythonPackage
, unittestCheckHook , unittestCheckHook
, flit-core
, daqp , daqp
, ecos , ecos
, numpy , numpy
@ -14,7 +15,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "qpsolvers"; pname = "qpsolvers";
version = "3.4.0"; version = "3.4.0";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "qpsolvers"; owner = "qpsolvers";
@ -35,6 +36,7 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
flit-core
quadprog quadprog
unittestCheckHook unittestCheckHook
]; ];

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core
, inform , inform
, pythonOlder , pythonOlder
, sly , sly
@ -9,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "quantiphy-eval"; pname = "quantiphy-eval";
version = "0.5"; version = "0.5";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -20,6 +21,10 @@ buildPythonPackage rec {
hash = "sha256-7VHcuINhe17lRNkHUnZkVOEtD6mVWk5gu0NbrLZwprg="; hash = "sha256-7VHcuINhe17lRNkHUnZkVOEtD6mVWk5gu0NbrLZwprg=";
}; };
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
inform inform
sly sly

View File

@ -1,7 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flitBuildHook , flit-core
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, inform , inform
@ -27,7 +27,7 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
flitBuildHook flit-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,7 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flitBuildHook , flit-core
, setuptools , setuptools
}: }:
@ -18,7 +18,7 @@ buildPythonPackage rec {
format = "pyproject"; format = "pyproject";
nativeBuildInputs = [ nativeBuildInputs = [
flitBuildHook flit-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
setuptools setuptools

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, flit-core
, feedparser , feedparser
, httpx , httpx
, loca , loca
@ -11,13 +12,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "rsskey"; pname = "rsskey";
version = "0.2.0"; version = "0.2.0";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-QedLuwd0ES2LWhZ72Cjh3+ZZ7HbRyNsyLN9lNFbY5dQ="; hash = "sha256-QedLuwd0ES2LWhZ72Cjh3+ZZ7HbRyNsyLN9lNFbY5dQ=";
}; };
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
feedparser feedparser
httpx httpx

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
, flit
, click , click
, cryptography , cryptography
, ecdsa , ecdsa
@ -15,7 +16,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "solo-python"; pname = "solo-python";
version = "0.1.1"; version = "0.1.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -26,6 +27,10 @@ buildPythonPackage rec {
hash = "sha256-XVPYr7JwxeZfZ68+vQ7a7MNiAfJ2bvMbM3R1ryVJ+OU="; hash = "sha256-XVPYr7JwxeZfZ68+vQ7a7MNiAfJ2bvMbM3R1ryVJ+OU=";
}; };
nativeBuildInputs = [
flit
];
propagatedBuildInputs = [ propagatedBuildInputs = [
click click
cryptography cryptography

View File

@ -10,7 +10,7 @@ buildPythonPackage rec {
pname = "sphinx-design"; pname = "sphinx-design";
version = "0.5.0"; version = "0.5.0";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";

View File

@ -12,7 +12,7 @@ buildPythonPackage rec {
pname = "sphinx-external-toc"; pname = "sphinx-external-toc";
version = "0.3.1"; version = "0.3.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";

View File

@ -21,7 +21,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "sphinx-hoverxref"; pname = "sphinx-hoverxref";
version = "1.3.0"; version = "1.3.0";
format = "flit"; format = "pyproject";
outputs = [ "out" "doc" ]; outputs = [ "out" "doc" ];
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -1,13 +1,14 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, flit-core
, sphinx , sphinx
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "sphinx-inline-tabs"; pname = "sphinx-inline-tabs";
version = "2023.04.21"; version = "2023.04.21";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pradyunsg"; owner = "pradyunsg";
@ -16,6 +17,10 @@ buildPythonPackage rec {
hash = "sha256-1oZheHDNOQU0vWL3YClQrJe94WyUJ72bCAF1UKtjJ0w="; hash = "sha256-1oZheHDNOQU0vWL3YClQrJe94WyUJ72bCAF1UKtjJ0w=";
}; };
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
sphinx sphinx
]; ];

View File

@ -11,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "sphinx-mdinclude"; pname = "sphinx-mdinclude";
version = "0.5.3"; version = "0.5.3";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
pname = "sphinx_mdinclude"; pname = "sphinx_mdinclude";

View File

@ -17,7 +17,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "sphinx-notfound-page"; pname = "sphinx-notfound-page";
version = "0.8.3"; version = "0.8.3";
format = "flit"; format = "pyproject";
outputs = [ "out" "doc" ]; outputs = [ "out" "doc" ];
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -18,7 +18,7 @@ buildPythonPackage rec {
hash = "sha256-vRHPq6BAuhn5QvHG2BGen9v6ezA3RgFVtustsNxU+n8="; hash = "sha256-vRHPq6BAuhn5QvHG2BGen9v6ezA3RgFVtustsNxU+n8=";
}; };
format = "flit"; format = "pyproject";
nativeBuildInputs = [ flit-core ]; nativeBuildInputs = [ flit-core ];

View File

@ -2,7 +2,7 @@
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, fetchFromGitHub , fetchFromGitHub
, flit , flit-core
, pytestCheckHook , pytestCheckHook
, numpy , numpy
, scipy , scipy
@ -13,7 +13,7 @@ buildPythonPackage rec {
version = "3.1.0"; version = "3.1.0";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "joblib"; owner = "joblib";
@ -22,6 +22,10 @@ buildPythonPackage rec {
hash = "sha256-/qt7cgFbvpc1BLZC7a4S0RToqSggKXAqF1Xr6xOqzw8="; hash = "sha256-/qt7cgFbvpc1BLZC7a4S0RToqSggKXAqF1Xr6xOqzw8=";
}; };
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
numpy numpy

View File

@ -2,12 +2,13 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pythonOlder , pythonOlder
, flit
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "tidyexc"; pname = "tidyexc";
version = "0.10.0"; version = "0.10.0";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -16,6 +17,10 @@ buildPythonPackage rec {
sha256 = "1gl1jmihafawg7hvnn4xb20vd2x5qpvca0m1wr2gk0m2jj42yiq6"; sha256 = "1gl1jmihafawg7hvnn4xb20vd2x5qpvca0m1wr2gk0m2jj42yiq6";
}; };
nativeBuildInputs = [
flit
];
pythonImportsCheck = [ pythonImportsCheck = [
"tidyexc" "tidyexc"
]; ];

View File

@ -10,7 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "tinycss2"; pname = "tinycss2";
version = "1.1.1"; version = "1.1.1";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";

View File

@ -1,15 +1,19 @@
{ lib, buildPythonPackage, fetchPypi, click, tomli }: { lib, buildPythonPackage, fetchPypi, flit, click, tomli }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "turnt"; pname = "turnt";
version = "1.11.0"; version = "1.11.0";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-XN+qzRgZMSdeBmW0OM36mQ79sRCuP8E++SqH8FOoEq0="; hash = "sha256-XN+qzRgZMSdeBmW0OM36mQ79sRCuP8E++SqH8FOoEq0=";
}; };
nativeBuildInputs = [
flit
];
propagatedBuildInputs = [ propagatedBuildInputs = [
click click
tomli tomli

View File

@ -1,7 +1,9 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch
, flit-core , flit-core
, dos2unix
, httpx , httpx
, pytest-asyncio , pytest-asyncio
, pytest-mock , pytest-mock
@ -12,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "zeversolarlocal"; pname = "zeversolarlocal";
version = "1.1.0"; version = "1.1.0";
format = "flit"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -23,6 +25,7 @@ buildPythonPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
flit-core flit-core
dos2unix
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -35,6 +38,20 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
# the patch below won't apply unless we fix the line endings
prePatch = ''
dos2unix pyproject.toml
'';
patches = [
# Raise the flit-core limit
# https://github.com/sander76/zeversolarlocal/pull/4
(fetchpatch {
url = "https://github.com/sander76/zeversolarlocal/commit/bff072ea046de07eced77bc79eb8e90dfef1f53f.patch";
hash = "sha256-tzFCwPzhAfwVfN5mLY/DMwRv7zGzx3ScBe+kKzkYcvo=";
})
];
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace "--cov zeversolarlocal --cov-report xml:cov.xml --cov-report term-missing -vv" "" --replace "--cov zeversolarlocal --cov-report xml:cov.xml --cov-report term-missing -vv" ""

View File

@ -4,7 +4,6 @@
"flit", "flit",
"flit-core", "flit-core",
"pbr", "pbr",
"flitBuildHook",
"cython", "cython",
"hatchling", "hatchling",
"hatch-vcs", "hatch-vcs",

View File

@ -316,7 +316,7 @@
"setuptools" "setuptools"
], ],
"aiohttp-remotes": [ "aiohttp-remotes": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"aiohttp-retry": [ "aiohttp-retry": [
@ -348,7 +348,7 @@
"setuptools" "setuptools"
], ],
"aiojobs": [ "aiojobs": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"aiokafka": [ "aiokafka": [
@ -428,7 +428,6 @@
], ],
"aioprocessing": [ "aioprocessing": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"aiopulse": [ "aiopulse": [
@ -476,7 +475,7 @@
"setuptools" "setuptools"
], ],
"aiorun": [ "aiorun": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"aiosenseme": [ "aiosenseme": [
@ -920,7 +919,7 @@
"setuptools" "setuptools"
], ],
"argon2-cffi": [ "argon2-cffi": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"argon2-cffi-bindings": [ "argon2-cffi-bindings": [
@ -1143,7 +1142,7 @@
"setuptools" "setuptools"
], ],
"asyncstdlib": [ "asyncstdlib": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"asynctest": [ "asynctest": [
@ -2014,7 +2013,7 @@
"setuptools" "setuptools"
], ],
"bash-kernel": [ "bash-kernel": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"bashlex": [ "bashlex": [
@ -3297,7 +3296,6 @@
], ],
"confuse": [ "confuse": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"connect-box": [ "connect-box": [
@ -4859,7 +4857,6 @@
], ],
"ecs-logging": [ "ecs-logging": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"ed25519": [ "ed25519": [
@ -5162,7 +5159,7 @@
"exceptiongroup": [ "exceptiongroup": [
"flit-core", "flit-core",
"flit-scm", "flit-scm",
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"exchangelib": [ "exchangelib": [
@ -5293,7 +5290,7 @@
"setuptools" "setuptools"
], ],
"fastapi": [ "fastapi": [
"flitBuildHook", "flit-core",
"hatchling", "hatchling",
"setuptools" "setuptools"
], ],
@ -5897,7 +5894,7 @@
"setuptools" "setuptools"
], ],
"formbox": [ "formbox": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"formencode": [ "formencode": [
@ -6004,7 +6001,7 @@
"setuptools" "setuptools"
], ],
"furo": [ "furo": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"fuse": [ "fuse": [
@ -6248,7 +6245,7 @@
"setuptools" "setuptools"
], ],
"gidgethub": [ "gidgethub": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"gigalixir": [ "gigalixir": [
@ -7612,14 +7609,14 @@
"setuptools" "setuptools"
], ],
"ipfshttpclient": [ "ipfshttpclient": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"iptools": [ "iptools": [
"setuptools" "setuptools"
], ],
"ipwhl": [ "ipwhl": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"ipwhois": [ "ipwhois": [
@ -8068,7 +8065,6 @@
], ],
"jupyter-book": [ "jupyter-book": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"jupyter-c-kernel": [ "jupyter-c-kernel": [
@ -8755,7 +8751,7 @@
"setuptools" "setuptools"
], ],
"loca": [ "loca": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"localimport": [ "localimport": [
@ -9166,7 +9162,6 @@
], ],
"mediafile": [ "mediafile": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"mediapy": [ "mediapy": [
@ -9536,7 +9531,6 @@
], ],
"more-itertools": [ "more-itertools": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"more-properties": [ "more-properties": [
@ -9830,12 +9824,10 @@
], ],
"myst-nb": [ "myst-nb": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"myst-parser": [ "myst-parser": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"nad-receiver": [ "nad-receiver": [
@ -10140,7 +10132,7 @@
"setuptools" "setuptools"
], ],
"nkdfu": [ "nkdfu": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"nltk": [ "nltk": [
@ -11239,7 +11231,6 @@
], ],
"pep440": [ "pep440": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"pep440-version-utils": [ "pep440-version-utils": [
@ -11281,7 +11272,6 @@
], ],
"pex": [ "pex": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"pexif": [ "pexif": [
@ -14144,15 +14134,15 @@
"setuptools" "setuptools"
], ],
"pytest-celery": [ "pytest-celery": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"pytest-check": [ "pytest-check": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"pytest-cid": [ "pytest-cid": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"pytest-clarity": [ "pytest-clarity": [
@ -14310,7 +14300,6 @@
], ],
"pytest-param-files": [ "pytest-param-files": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"pytest-profiling": [ "pytest-profiling": [
@ -14332,7 +14321,6 @@
], ],
"pytest-raisin": [ "pytest-raisin": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"pytest-random-order": [ "pytest-random-order": [
@ -16016,7 +16004,7 @@
"setuptools" "setuptools"
], ],
"rsskey": [ "rsskey": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"rst2ansi": [ "rst2ansi": [
@ -16878,7 +16866,7 @@
"setuptools" "setuptools"
], ],
"solo-python": [ "solo-python": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"somajo": [ "somajo": [
@ -17012,19 +17000,17 @@
], ],
"sphinx-design": [ "sphinx-design": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"sphinx-external-toc": [ "sphinx-external-toc": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"sphinx-fortran": [ "sphinx-fortran": [
"setuptools" "setuptools"
], ],
"sphinx-inline-tabs": [ "sphinx-inline-tabs": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"sphinx-jinja": [ "sphinx-jinja": [
@ -17042,7 +17028,6 @@
], ],
"sphinx-mdinclude": [ "sphinx-mdinclude": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"sphinx-multitoc-numbering": [ "sphinx-multitoc-numbering": [
@ -17053,7 +17038,6 @@
], ],
"sphinx-pytest": [ "sphinx-pytest": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"sphinx-rtd-theme": [ "sphinx-rtd-theme": [
@ -17434,7 +17418,7 @@
"setuptools" "setuptools"
], ],
"structlog": [ "structlog": [
"flitBuildHook", "flit-core",
"hatch-fancy-pypi-readme", "hatch-fancy-pypi-readme",
"hatch-vcs", "hatch-vcs",
"hatchling", "hatchling",
@ -17952,7 +17936,7 @@
"setuptools" "setuptools"
], ],
"threadpoolctl": [ "threadpoolctl": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"threat9-test-bed": [ "threat9-test-bed": [
@ -18023,7 +18007,6 @@
], ],
"tinycss2": [ "tinycss2": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"tinydb": [ "tinydb": [
@ -18343,7 +18326,7 @@
"setuptools" "setuptools"
], ],
"turnt": [ "turnt": [
"flitBuildHook", "flit-core",
"setuptools" "setuptools"
], ],
"tusker": [ "tusker": [
@ -19848,7 +19831,6 @@
], ],
"zeversolarlocal": [ "zeversolarlocal": [
"flit-core", "flit-core",
"flitBuildHook",
"setuptools" "setuptools"
], ],
"zfec": [ "zfec": [

View File

@ -3,7 +3,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "brutalmaze"; pname = "brutalmaze";
version = "1.1.1"; version = "1.1.1";
format = "flit"; format = "pyproject";
disabled = python3Packages.pythonOlder "3.7"; disabled = python3Packages.pythonOlder "3.7";
src = fetchFromSourcehut { src = fetchFromSourcehut {
@ -13,6 +13,10 @@ python3Packages.buildPythonApplication rec {
sha256 = "1m105iq378mypj64syw59aldbm6bj4ma4ynhc50gafl656fabg4y"; sha256 = "1m105iq378mypj64syw59aldbm6bj4ma4ynhc50gafl656fabg4y";
}; };
nativeBuildInputs = with python3Packages; [
flit-core
];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
loca loca
palace palace

View File

@ -1,15 +1,17 @@
{ lib, buildPythonApplication, fetchurl, pyspf, dnspython, authres, pymilter }: { lib, buildPythonApplication, fetchurl, flit-core, pyspf, dnspython, authres, pymilter }:
buildPythonApplication rec { buildPythonApplication rec {
pname = "spf-engine"; pname = "spf-engine";
version = "3.0.4"; version = "3.0.4";
format = "flit"; format = "pyproject";
src = fetchurl { src = fetchurl {
url = "https://launchpad.net/${pname}/${lib.versions.majorMinor version}/${version}/+download/${pname}-${version}.tar.gz"; url = "https://launchpad.net/${pname}/${lib.versions.majorMinor version}/${version}/+download/${pname}-${version}.tar.gz";
sha256 = "sha256-Gcw7enNIb/TrZEYa0Z04ezHUmfMmc1J+aEH6FlXbhTo="; sha256 = "sha256-Gcw7enNIb/TrZEYa0Z04ezHUmfMmc1J+aEH6FlXbhTo=";
}; };
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ pyspf dnspython authres pymilter ]; propagatedBuildInputs = [ pyspf dnspython authres pymilter ];
pythonImportsCheck = [ pythonImportsCheck = [

View File

@ -11,7 +11,7 @@ with python3Packages;
buildPythonApplication rec { buildPythonApplication rec {
pname = "pynitrokey"; pname = "pynitrokey";
version = "0.4.39"; version = "0.4.39";
format = "flit"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -43,9 +43,13 @@ buildPythonApplication rec {
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
flit-core
pythonRelaxDepsHook pythonRelaxDepsHook
]; ];
# FIXME: does pythonRelaxDepsHook not work for pypaBuildHook + flit-core?
pypaBuildFlags = [ "--skip-dependency-check" ];
pythonRelaxDeps = [ pythonRelaxDeps = [
"click" "click"
"cryptography" "cryptography"

View File

@ -6,7 +6,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "trueseeing"; pname = "trueseeing";
version = "2.1.7"; version = "2.1.7";
format = "flit"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alterakey"; owner = "alterakey";