Skip to content

Commit

Permalink
python3Packages.hatchling: 0.20.0 -> 0.20.1
Browse files Browse the repository at this point in the history
Switches to the PyPi source per the upstream maintainers request in
#163088 (comment)
  • Loading branch information
mweinelt committed Mar 7, 2022
1 parent 249fed1 commit c92a24c
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions pkgs/development/python-modules/hatchling/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, pythonOlder

# runtime
Expand All @@ -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
Expand All @@ -51,6 +45,7 @@ buildPythonPackage {

pythonImportsCheck = [
"hatchling"
"hatchling.build"
];

# tries to fetch packages from the internet
Expand Down Expand Up @@ -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 ];
};
}

0 comments on commit c92a24c

Please sign in to comment.