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
, pythonOlder
, requests
, setuptools
}:
buildPythonPackage rec {
pname = "sunweg";
version = "2.1.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rokam";
repo = pname;
repo = "sunweg";
rev = "refs/tags/${version}";
hash = "sha256-fgNtxCBIuNulCfuDaEsM7kL1WpwNE9O+JQ1DMZrz5jA=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
requests
];