mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
Merge pull request #252145 from Dettorer/python-add-pydiscourse
pythonPackages.pydiscourse: init at 1.4.0
This commit is contained in:
commit
ce91fbb9b0
42
pkgs/development/python-modules/pydiscourse/default.nix
Normal file
42
pkgs/development/python-modules/pydiscourse/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user