python312Packages.bizkaibus: refactor

This commit is contained in:
Fabian Affolter
2025-01-06 23:33:24 +01:00
parent c2299a75dd
commit 9d49728c39
@@ -1,25 +1,29 @@
{
lib,
requests,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "bizkaibus";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "UgaitzEtxebarria";
repo = "BizkaibusRTPI";
rev = version;
sha256 = "sha256-TM02pSSOELRGSwsKc5C+34W94K6mnS0C69aijsPqSWs=";
hash = "sha256-TM02pSSOELRGSwsKc5C+34W94K6mnS0C69aijsPqSWs=";
};
propagatedBuildInputs = [ requests ];
build-system = [ setuptools ];
dependencies = [ aiohttp ];
# Project has no tests
doCheck = false;
@@ -29,7 +33,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module to get information about Bizkaibus buses";
homepage = "https://github.com/UgaitzEtxebarria/BizkaibusRTPI";
license = with licenses; [ mit ];
changelog = "https://github.com/UgaitzEtxebarria/BizkaibusRTPI/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}