nixpkgs/pkgs/development/python-modules/tahoma-api/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

30 lines
664 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
}:
buildPythonPackage rec {
pname = "tahoma-api";
version = "0.0.17";
src = fetchFromGitHub {
owner = "philklei";
repo = pname;
rev = "v${version}";
hash = "sha256-YwOKSBlN4lNyS+hfdbQDUq1gc14FBof463ofxtUVLC4=";
};
propagatedBuildInputs = [ requests ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "tahoma_api" ];
meta = with lib; {
description = "Python module to interface with Tahoma REST API";
homepage = "https://github.com/philklei/tahoma-api/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}