Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
995 B · 59 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, fetchFromGitHub, geojson, pysocks, pythonOlder, requests, pytestCheckHook, pythonRelaxDepsHook}:
buildPythonPackage rec { pname = "pyowm"; version = "3.3.0"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "csparpa"; repo = pname; rev = version; hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME="; };
pythonRelaxDeps = [ "geojson" ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
propagatedBuildInputs = [ geojson pysocks requests ];
nativeCheckInputs = [ 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 ]; };}