2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
2022-03-05 16:20:37 +00:00
|
|
|
, requests
|
|
|
|
, future
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysignalclirestapi";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.3.22";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bbernhard";
|
|
|
|
repo = "pysignalclirestapi";
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-m8Sihf5vTDntd5Tbaa5o55G/k/rqtmjWreoTab58CHU=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
future
|
|
|
|
];
|
|
|
|
|
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pysignalclirestapi" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Small python library for the Signal Cli REST API";
|
|
|
|
homepage = "https://github.com/bbernhard/pysignalclirestapi";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|