Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, docutils 5, nose 6, stdenv 7, flake8 8, pyyaml 9, testtools 10}: 11 12buildPythonPackage rec { 13 pname = "restructuredtext_lint"; 14 version = "1.1.1"; 15 name = "${pname}-${version}"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "167e8adaa5bdc30531ee91760d6c216b306a8a3372aad34b1f72d8adcc5e011e"; 20 }; 21 22 checkInputs = [ nose flake8 pyyaml testtools ]; 23 propagatedBuildInputs = [ docutils ]; 24 25 checkPhase = '' 26 ${stdenv.shell} test.sh 27 ''; 28 29 meta = { 30 description = "reStructuredText linter"; 31 homepage = https://github.com/twolfson/restructuredtext-lint; 32 license = lib.licenses.unlicense; 33 }; 34}