Merge pull request #22325 from lsix/update_pep257
update pythonPackages.pep257
This commit is contained in:
commit
e3f710466f
23
pkgs/development/python-modules/pep257.nix
Normal file
23
pkgs/development/python-modules/pep257.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchurl, pytest, mock }:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
name = "pep257-${version}";
|
||||||
|
version = "0.7.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/GreenSteam/pep257/archive/${version}.tar.gz";
|
||||||
|
sha256 = "1ldpgil0kaf6wz5gvl9xdx35a62vc6bmgi3wbh9320dj5v2qk4wh";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest mock ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/GreenSteam/pep257/;
|
||||||
|
description = "Python docstring style checker";
|
||||||
|
longDescription = "Static analysis tool for checking compliance with Python PEP 257.";
|
||||||
|
lecense = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
19
pkgs/development/python-modules/pytest-pep257.nix
Normal file
19
pkgs/development/python-modules/pytest-pep257.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchurl, pytest, pep257 }:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
name = "pytest-pep257-${version}";
|
||||||
|
version = "0.0.5";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://pypi/p/pytest-pep257/${name}.tar.gz";
|
||||||
|
sha256 = "082v3d5k4331x53za51kl8zxsndsw1pcyf1xdfpb2gjdjrhixb8w";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest ];
|
||||||
|
propagatedBuildInputs = [ pep257 ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/anderslime/pytest-pep257;
|
||||||
|
description = "py.test plugin for PEP257";
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
@ -5150,24 +5150,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pytestpep257 = buildPythonPackage rec {
|
pytest-pep257 = callPackage ../development/python-modules/pytest-pep257.nix { };
|
||||||
name = "pytest-pep257-${version}";
|
|
||||||
version = "0.0.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/pytest-pep257/${name}.tar.gz";
|
|
||||||
sha256 = "003vdkxpx37n0kjqpwgj3314hwk2jfz3nz58db7xh68bf8xy75lk";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pytest ];
|
|
||||||
propagatedBuildInputs = with self ; [ pep257 ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://github.com/anderslime/pytest-pep257;
|
|
||||||
description = "py.test plugin for PEP257";
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pytest-raisesregexp = buildPythonPackage rec {
|
pytest-raisesregexp = buildPythonPackage rec {
|
||||||
name = "pytest-raisesregexp-${version}";
|
name = "pytest-raisesregexp-${version}";
|
||||||
@ -18386,28 +18369,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pep257 = buildPythonPackage rec {
|
pep257 = callPackage ../development/python-modules/pep257.nix { };
|
||||||
name = "pep257-${version}";
|
|
||||||
version = "0.3.2";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://github.com/GreenSteam/pep257/archive/${version}.tar.gz";
|
|
||||||
sha256 = "0v8aq0xzsa7clazszxl42904c3jpq69lg8a5hg754bqcqf72hfrn";
|
|
||||||
};
|
|
||||||
LC_ALL="en_US.UTF-8";
|
|
||||||
buildInputs = with self; [ pkgs.glibcLocales pytest_29 ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://github.com/GreenSteam/pep257/;
|
|
||||||
description = "Python docstring style checker";
|
|
||||||
longDescription = "Static analysis tool for checking compliance with Python PEP 257.";
|
|
||||||
lecense = licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
percol = buildPythonPackage rec {
|
percol = buildPythonPackage rec {
|
||||||
name = "percol-${version}";
|
name = "percol-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user