nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 41 lines 909 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-mock, 6 pytestCheckHook, 7 requests, 8 requests-mock, 9}: 10 11buildPythonPackage rec { 12 pname = "pydiscourse"; 13 version = "1.7.0"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "pydiscourse"; 18 repo = "pydiscourse"; 19 tag = "v${version}"; 20 hash = "sha256-KqJ6ag4owG7US5Q4Ygjq263ds1o/JhEJ3bNa8YecYtE="; 21 }; 22 23 propagatedBuildInputs = [ requests ]; 24 25 nativeCheckInputs = [ 26 pytest-mock 27 pytestCheckHook 28 requests-mock 29 ]; 30 31 pythonImportsCheck = [ "pydiscourse" ]; 32 33 meta = { 34 description = "Python library for working with Discourse"; 35 mainProgram = "pydiscoursecli"; 36 homepage = "https://github.com/pydiscourse/pydiscourse"; 37 changelog = "https://github.com/pydiscourse/pydiscourse/releases/tag/v${version}"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ Dettorer ]; 40 }; 41}