@@ -1,4 +1,7 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycodestyle";
|
||||
@@ -6,13 +9,23 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e40a936c9a450ad81df37f549d676d127b1b66000a6c500caa2b085bc0ca976c";
|
||||
sha256 = "0v4prb05n21bm8650v0a01k1nyqjdmkrsm3zycfxh2j5k9n962p4";
|
||||
};
|
||||
|
||||
# https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14
|
||||
checkPhase = ''
|
||||
python pycodestyle.py --max-doc-length=72 --testsuite testsuite
|
||||
python pycodestyle.py --statistics pycodestyle.py
|
||||
python pycodestyle.py --max-doc-length=72 --doctest
|
||||
python setup.py test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python style guide checker (formerly called pep8)";
|
||||
homepage = https://pycodestyle.readthedocs.io;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [
|
||||
kamadorueda
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, runtimeShell,
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, runtimeShell,
|
||||
nose, dbus, dbus-python, pygobject3,
|
||||
which, pyflakes, pycodestyle, bluez, networkmanager
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-dbusmock";
|
||||
version = "0.18.3";
|
||||
version = "0.19";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "994a178268b6d74aeb158c0f155cd141e9a0cfae14226a764cd022c4949fe242";
|
||||
src = fetchFromGitHub {
|
||||
owner = "martinpitt";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "09j338lmrjabbd3fpajr4piz4r20sl33030szfsqfzlwrrmvkyi0";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
|
||||
@@ -105,7 +105,7 @@ let
|
||||
path = "${cudatoolkit}/lib/stubs/libcuda.so";
|
||||
}];
|
||||
cudaStubEnv = lib.optionalString cudaSupport
|
||||
"LD_LIBRARY_PATH=${cudaStub}\${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} ";
|
||||
"LD_LIBRARY_PATH=${cudaStub}\${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH ";
|
||||
|
||||
in buildPythonPackage rec {
|
||||
version = "1.2.0";
|
||||
|
||||
Reference in New Issue
Block a user