about summary refs log tree commit diff
path: root/pkgs/development/tools/hatch
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-17 17:37:56 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-17 17:37:56 +0200
commit1785c6e8a935bd74ce88d4672e72e3e4e8885c24 (patch)
treed8ff058288822449f478edfc5b1b1f4cb925ab16 /pkgs/development/tools/hatch
parenta8fa8c2e90e051dc47993f3a91b776e5bf7d9391 (diff)
hatch: switch to fetchPypi
Diffstat (limited to 'pkgs/development/tools/hatch')
-rw-r--r--pkgs/development/tools/hatch/default.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/pkgs/development/tools/hatch/default.nix b/pkgs/development/tools/hatch/default.nix
index 026aa6f2fc30b..f6760d5938a69 100644
--- a/pkgs/development/tools/hatch/default.nix
+++ b/pkgs/development/tools/hatch/default.nix
@@ -1,6 +1,6 @@
 { lib
 , stdenv
-, fetchFromGitHub
+, fetchPypi
 , python3
 , git
 }:
@@ -10,11 +10,9 @@ python3.pkgs.buildPythonApplication rec {
   version = "1.6.3";
   format = "pyproject";
 
-  src = fetchFromGitHub {
-    owner = "pypa";
-    repo = "hatch";
-    rev = "hatch-v${version}";
-    hash = "sha256-3nPh6F+TmLoogz9FgaZMub7hPJIzANCY4oWk9Mq22Pc=";
+  src = fetchPypi {
+    inherit pname version;
+    hash = "sha256-ZQ5nG6MAMY5Jjvk7vjuZsyzhSSB2T7h1P4mZP2Pu15o=";
   };
 
   propagatedBuildInputs = with python3.pkgs; [
@@ -73,7 +71,7 @@ python3.pkgs.buildPythonApplication rec {
   meta = with lib; {
     description = "Modern, extensible Python project manager";
     homepage = "https://hatch.pypa.io/latest/";
-    changelog = "https://github.com/pypa/hatch/blob/${src.rev}/docs/history.md#hatch";
+    changelog = "https://github.com/pypa/hatch/blob/hatch-v${version}/docs/history.md#hatch";
     license = licenses.mit;
     maintainers = with maintainers; [ onny ];
   };