Merge pull request #252145 from Dettorer/python-add-pydiscourse

pythonPackages.pydiscourse: init at 1.4.0
This commit is contained in:
Fabian Affolter 2023-08-31 13:05:36 +02:00 committed by GitHub
commit ce91fbb9b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "pydiscourse";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pydiscourse";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-peDkXRcD/ieWYWXqv8hPxTSNRXBHcb/3sj/JJSF2RYg=";
};
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
unittestCheckHook
];
pythonImportsCheck = [
"pydiscourse"
];
meta = with lib; {
description = "A Python library for working with Discourse";
homepage = "https://github.com/pydiscourse/pydiscourse";
changelog = "https://github.com/pydiscourse/pydiscourse/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ Dettorer ];
};
}

View File

@ -8972,6 +8972,8 @@ self: super: with self; {
pydigiham = callPackage ../development/python-modules/pydigiham { };
pydiscourse = callPackage ../development/python-modules/pydiscourse { };
pydispatcher = callPackage ../development/python-modules/pydispatcher { };
pydmd = callPackage ../development/python-modules/pydmd { };