From c92a24c0931997874f0eb66b8ac77d9bf6317c71 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 7 Mar 2022 18:39:07 +0100 Subject: [PATCH] python3Packages.hatchling: 0.20.0 -> 0.20.1 Switches to the PyPi source per the upstream maintainers request in https://github.com/NixOS/nixpkgs/pull/163088#issuecomment-1060748447 --- .../python-modules/hatchling/default.nix | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/hatchling/default.nix b/pkgs/development/python-modules/hatchling/default.nix index 0b433083519be37..09cbdead671a390 100644 --- a/pkgs/development/python-modules/hatchling/default.nix +++ b/pkgs/development/python-modules/hatchling/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , pythonOlder # runtime @@ -21,23 +21,17 @@ let pname = "hatchling"; - version = "0.20.0"; + version = "0.20.1"; in buildPythonPackage { inherit pname version; format = "pyproject"; - src = fetchFromGitHub { - owner = "ofek"; - repo = "hatch"; - rev = "${pname}-v${version}"; - hash = "sha256-Sm3utqkuofVDn815HPj501KEuypnaYKm06ehsu+m3i4="; + src = fetchPypi { + inherit pname version; + hash = "sha256-l1VRce5H3CSAwZBeuxRyy7bNpOM6zX5s2L1/DXPo/Bg="; }; - prePatch = '' - cd backend - ''; - # listed in backend/src/hatchling/ouroboros.py propagatedBuildInputs = [ editables @@ -51,6 +45,7 @@ buildPythonPackage { pythonImportsCheck = [ "hatchling" + "hatchling.build" ]; # tries to fetch packages from the internet @@ -79,6 +74,6 @@ buildPythonPackage { description = "Modern, extensible Python build backend"; homepage = "https://ofek.dev/hatch/latest/"; license = licenses.mit; - maintainers = with maintainers; [ hexa ]; + maintainers = with maintainers; [ hexa ofek ]; }; }