hatch: switch to fetchPypi
This commit is contained in:
parent
a8fa8c2e90
commit
1785c6e8a9
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchPypi
|
||||||
, python3
|
, python3
|
||||||
, git
|
, git
|
||||||
}:
|
}:
|
||||||
|
@ -10,11 +10,9 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
version = "1.6.3";
|
version = "1.6.3";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
owner = "pypa";
|
inherit pname version;
|
||||||
repo = "hatch";
|
hash = "sha256-ZQ5nG6MAMY5Jjvk7vjuZsyzhSSB2T7h1P4mZP2Pu15o=";
|
||||||
rev = "hatch-v${version}";
|
|
||||||
hash = "sha256-3nPh6F+TmLoogz9FgaZMub7hPJIzANCY4oWk9Mq22Pc=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
@ -73,7 +71,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Modern, extensible Python project manager";
|
description = "Modern, extensible Python project manager";
|
||||||
homepage = "https://hatch.pypa.io/latest/";
|
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;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ onny ];
|
maintainers = with maintainers; [ onny ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue