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

46 lines
794 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "justnimbus";
version = "0.7.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kvanzuijlen";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-arUdjZiEJx0L1YcCNxqlE4ItoTEzd/TYVgqDPIqomMg=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"justnimbus"
];
meta = with lib; {
description = "Library for the JustNimbus API";
homepage = "https://github.com/kvanzuijlen/justnimbus";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}