depot/third_party/nixpkgs/pkgs/development/python-modules/sunwatcher/default.nix

35 lines
698 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "sunwatcher";
version = "0.2.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0swmvmmbfb914k473yv3fc4zizy2abq2qhd7h6lixli11l5wfjxv";
};
propagatedBuildInputs = [ requests ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "sunwatcher" ];
meta = with lib; {
description = "Python module for the SolarLog HTTP API";
homepage = "https://bitbucket.org/Lavode/sunwatcher/src/master/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}