nixpkgs/pkgs/development/python-modules/restructuredtext_lint/default.nix
Frederik Rietdijk 67651d80bc Merge pull request #28884 from FRidh/python-fixes
Python: several fixes
2017-09-06 13:54:10 +02:00

34 lines
659 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, docutils
, nose
, stdenv
, flake8
, pyyaml
, testtools
}:
buildPythonPackage rec {
pname = "restructuredtext_lint";
version = "1.1.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "167e8adaa5bdc30531ee91760d6c216b306a8a3372aad34b1f72d8adcc5e011e";
};
checkInputs = [ nose flake8 pyyaml testtools ];
propagatedBuildInputs = [ docutils ];
checkPhase = ''
${stdenv.shell} test.sh
'';
meta = {
description = "reStructuredText linter";
homepage = https://github.com/twolfson/restructuredtext-lint;
license = lib.licenses.unlicense;
};
}