python312Package.pyowm: refactor
This commit is contained in:
parent
364aa17311
commit
1feeea57f4
|
@ -13,14 +13,14 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyowm";
|
pname = "pyowm";
|
||||||
version = "3.3.0";
|
version = "3.3.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "csparpa";
|
owner = "csparpa";
|
||||||
repo = pname;
|
repo = "pyowm";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
|
hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,11 +28,15 @@ buildPythonPackage rec {
|
||||||
"geojson"
|
"geojson"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pythonRelaxDepsHook
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
geojson
|
geojson
|
||||||
pysocks
|
pysocks
|
||||||
requests
|
requests
|
||||||
|
@ -55,6 +59,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python wrapper around the OpenWeatherMap web API";
|
description = "Python wrapper around the OpenWeatherMap web API";
|
||||||
homepage = "https://pyowm.readthedocs.io/";
|
homepage = "https://pyowm.readthedocs.io/";
|
||||||
|
changelog = "https://github.com/csparpa/pyowm/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user