Merge remote-tracking branch 'upstream/master' into HEAD
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, enum34, pycodestyle, pytest, flake8, pylama }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flake8-import-order";
|
||||
version = "0.17";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "60ea6674c77e4d916071beabf2b31b9b45e2f5b3bbda48a34db65766a5b25678";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pycodestyle ] ++ lib.optional (!isPy3k) enum34;
|
||||
|
||||
checkInputs = [ pytest flake8 pycodestyle pylama ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest --strict
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flake8 and pylama plugin that checks the ordering of import statements";
|
||||
homepage = https://github.com/PyCQA/flake8-import-order;
|
||||
license = with licenses; [ lgpl3 mit ];
|
||||
};
|
||||
}
|
||||
@@ -4,7 +4,6 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "jsonrpc-async";
|
||||
version = "0.6";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "jsonrpc-base";
|
||||
version = "1.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "jsonrpc-websocket";
|
||||
version = "0.5";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
@@ -1,20 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, snowballstemmer, configparser,
|
||||
pytest, pytestpep8, mock, pathlib }:
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder
|
||||
, snowballstemmer, six, configparser
|
||||
, pytest, pytestpep8, mock, pathlib }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydocstyle";
|
||||
version = "2.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "15ssv8l6cvrmzgwcdzw76rnl4np3qf0dbwr1wsx76y0hc7lwsnsd";
|
||||
# no tests on PyPI
|
||||
# https://github.com/PyCQA/pydocstyle/issues/302
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyCQA";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1h0k8lpx14svc8dini62j0kqiam10pck5sdzvxa4xhsx7y689g5l";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ snowballstemmer configparser ];
|
||||
propagatedBuildInputs = [ snowballstemmer six ] ++ lib.optional (!isPy3k) configparser;
|
||||
|
||||
checkInputs = [ pytest pytestpep8 mock pathlib ];
|
||||
checkInputs = [ pytest pytestpep8 mock ] ++ lib.optional (pythonOlder "3.4") pathlib;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
checkPhase = ''
|
||||
# test_integration.py installs packages via pip
|
||||
py.test --pep8 --cache-clear -vv src/tests -k "not test_integration"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python docstring style checker";
|
||||
homepage = https://github.com/PyCQA/pydocstyle/;
|
||||
license = licenses.mit;
|
||||
|
||||
33
pkgs/development/python-modules/pylama/default.nix
Normal file
33
pkgs/development/python-modules/pylama/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch
|
||||
, mccabe, pycodestyle, pydocstyle, pyflakes
|
||||
, pytest, ipdb }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylama";
|
||||
version = "7.4.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "390c1dab1daebdf3d6acc923e551b035c3faa77d8b96b98530c230493f9ec712";
|
||||
};
|
||||
|
||||
patches = fetchpatch {
|
||||
url = "${meta.homepage}/pull/116.patch";
|
||||
sha256 = "00jz5k2w0xahs1m3s603j6l4cwzz92qsbbk81fh17nq0f47999mv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ mccabe pycodestyle pydocstyle pyflakes ];
|
||||
|
||||
checkInputs = [ pytest ipdb ];
|
||||
|
||||
# tries to mess with the file system
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Code audit tool for python";
|
||||
homepage = https://github.com/klen/pylama;
|
||||
# ambiguous license declarations: https://github.com/klen/pylama/issues/64
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
@@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ pytest pytestrunner mccabe configparser backports_functools_lru_cache ];
|
||||
|
||||
propagatedBuildInputs = [ astroid configparser isort ];
|
||||
propagatedBuildInputs = [ astroid configparser isort mccabe ];
|
||||
|
||||
postPatch = ''
|
||||
# Remove broken darwin tests
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "pyunifi";
|
||||
version = "2.13";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "wakeonlan";
|
||||
version = "1.0.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
Reference in New Issue
Block a user