Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 59 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, docutils 4, fetchFromGitHub 5, importlib-metadata 6, mock 7, poetry-core 8, pydantic 9, pytest-mock 10, pytestCheckHook 11, pythonOlder 12, types-docutils 13, typing-extensions 14}: 15 16buildPythonPackage rec { 17 pname = "rstcheck-core"; 18 version = "1.0.3"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "rstcheck"; 25 repo = pname; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-9U+GhkwBr+f3yEe7McOxqPRUuTp9vP+3WT5wZ92n32w="; 28 }; 29 30 nativeBuildInputs = [ 31 poetry-core 32 ]; 33 34 propagatedBuildInputs = [ 35 docutils 36 importlib-metadata 37 pydantic 38 types-docutils 39 typing-extensions 40 ]; 41 42 checkInputs = [ 43 mock 44 pytest-mock 45 pytestCheckHook 46 ]; 47 48 pythonImportsCheck = [ 49 "rstcheck_core" 50 ]; 51 52 meta = with lib; { 53 description = "Library for checking syntax of reStructuredText"; 54 homepage = "https://github.com/rstcheck/rstcheck-core"; 55 changelog = "https://github.com/rstcheck/rstcheck-core/blob/v${version}/CHANGELOG.md"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}