depot/third_party/nixpkgs/pkgs/development/python-modules/pydiscourse/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

46 lines
929 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-mock
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "pydiscourse";
version = "1.6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pydiscourse";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-BvVKOfc/PiAnkEnH5jsd8/0owr+ZvJIz/tpZx6K0fP0=";
};
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
requests-mock
];
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 ];
};
}