forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python.pkgs.restructuredtext_lint: does not support Python 3.7 yet
- Loading branch information
Robert Schütz
committed
Mar 15, 2019
1 parent
db81989
commit 739cf7d
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
13 changes: 7 additions & 6 deletions
13
pkgs/development/python-modules/restructuredtext_lint/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, isPy37 | ||
, docutils | ||
, nose | ||
, stdenv | ||
, flake8 | ||
, pyyaml | ||
, testtools | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "restructuredtext_lint"; | ||
version = "1.2.2"; | ||
|
||
# https://github.com/twolfson/restructuredtext-lint/pull/47 | ||
disabled = isPy37; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "82880a8de8a41bfc84f533744091b1ead8e2ab9ad6c0a3f60f4750ef6c802350"; | ||
}; | ||
|
||
checkInputs = [ nose flake8 pyyaml testtools ]; | ||
checkInputs = [ nose testtools ]; | ||
propagatedBuildInputs = [ docutils ]; | ||
|
||
checkPhase = '' | ||
${stdenv.shell} test.sh | ||
nosetests --nocapture | ||
''; | ||
|
||
meta = { | ||
description = "reStructuredText linter"; | ||
homepage = https://github.com/twolfson/restructuredtext-lint; | ||
license = lib.licenses.unlicense; | ||
}; | ||
} | ||
} |