uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
79
pkgs/development/python-modules/hatchling/default.nix
Normal file
79
pkgs/development/python-modules/hatchling/default.nix
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
|
||||
# runtime
|
||||
, editables
|
||||
, importlib-metadata # < 3.8
|
||||
, packaging
|
||||
, pathspec
|
||||
, pluggy
|
||||
, tomli
|
||||
|
||||
# tests
|
||||
, build
|
||||
, python
|
||||
, requests
|
||||
, toml
|
||||
, virtualenv
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "hatchling";
|
||||
version = "0.25.0";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-k/bjZvGaOjZshVr6w3Jb7XaC1dAOlIaraFQKCth2ZII=";
|
||||
};
|
||||
|
||||
# listed in backend/src/hatchling/ouroboros.py
|
||||
propagatedBuildInputs = [
|
||||
editables
|
||||
packaging
|
||||
pathspec
|
||||
pluggy
|
||||
tomli
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"hatchling"
|
||||
"hatchling.build"
|
||||
];
|
||||
|
||||
# tries to fetch packages from the internet
|
||||
doCheck = false;
|
||||
|
||||
# listed in /backend/tests/downstream/requirements.txt
|
||||
checkInputs = [
|
||||
build
|
||||
packaging
|
||||
requests
|
||||
toml
|
||||
virtualenv
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} tests/downstream/integrate.py
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Modern, extensible Python build backend";
|
||||
homepage = "https://ofek.dev/hatch/latest/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ofek ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue