python312Packages.sunweg: refactor

This commit is contained in:
Fabian Affolter 2024-03-19 06:50:52 +01:00 committed by GitHub
parent f82d0d1bc9
commit d8c3e1faf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,22 +4,27 @@
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, requests , requests
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "sunweg"; pname = "sunweg";
version = "2.1.1"; version = "2.1.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rokam"; owner = "rokam";
repo = pname; repo = "sunweg";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-fgNtxCBIuNulCfuDaEsM7kL1WpwNE9O+JQ1DMZrz5jA="; hash = "sha256-fgNtxCBIuNulCfuDaEsM7kL1WpwNE9O+JQ1DMZrz5jA=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
requests requests
]; ];