My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyowm/default.nix

50 lines
873 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, geojson
, pysocks
, pythonOlder
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyowm";
version = "3.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "csparpa";
repo = pname;
rev = version;
sha256 = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
};
propagatedBuildInputs = [
geojson
pysocks
requests
];
checkInputs = [
pytestCheckHook
];
# Run only tests which don't require network access
pytestFlagsArray = [
"tests/unit"
];
pythonImportsCheck = [
"pyowm"
];
meta = with lib; {
description = "Python wrapper around the OpenWeatherMap web API";
homepage = "https://pyowm.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}