mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
Merge pull request #305275 from 9R/pyowm-fix
python3Package.pyowm: add missing dependency setuptools
This commit is contained in:
commit
168e3185b0
@ -1,58 +1,54 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, geojson
|
||||
, pysocks
|
||||
, pythonOlder
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
, pythonRelaxDepsHook
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
geojson,
|
||||
pysocks,
|
||||
pythonOlder,
|
||||
requests,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
pythonRelaxDepsHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyowm";
|
||||
version = "3.3.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "csparpa";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
repo = "pyowm";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"geojson"
|
||||
];
|
||||
pythonRelaxDeps = [ "geojson" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
|
||||
dependencies = [
|
||||
geojson
|
||||
pysocks
|
||||
requests
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
# Run only tests which don't require network access
|
||||
pytestFlagsArray = [
|
||||
"tests/unit"
|
||||
];
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyowm"
|
||||
];
|
||||
pythonImportsCheck = [ "pyowm" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper around the OpenWeatherMap web API";
|
||||
homepage = "https://pyowm.readthedocs.io/";
|
||||
changelog = "https://github.com/csparpa/pyowm/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user