pythonPackages.flake8-polyfill: init at 1.0.2
This commit is contained in:
parent
2fc0ff34a4
commit
e73473f424
40
pkgs/development/python-modules/flake8-polyfill/default.nix
Normal file
40
pkgs/development/python-modules/flake8-polyfill/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ lib, fetchPypi, buildPythonPackage
|
||||||
|
, flake8
|
||||||
|
, mock, pep8, pytest }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "flake8-polyfill";
|
||||||
|
version = "1.0.2";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Failed: [pytest] section in setup.cfg files is no longer supported, change to [tool:pytest] instead.
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace pytest 'tool:pytest'
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
flake8
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pep8
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest tests
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = https://gitlab.com/pycqa/flake8-polyfill;
|
||||||
|
description = "Polyfill package for Flake8 plugins";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ eadwu ];
|
||||||
|
};
|
||||||
|
}
|
@ -2975,6 +2975,8 @@ in {
|
|||||||
|
|
||||||
flake8-import-order = callPackage ../development/python-modules/flake8-import-order { };
|
flake8-import-order = callPackage ../development/python-modules/flake8-import-order { };
|
||||||
|
|
||||||
|
flake8-polyfill = callPackage ../development/python-modules/flake8-polyfill { };
|
||||||
|
|
||||||
flaky = callPackage ../development/python-modules/flaky { };
|
flaky = callPackage ../development/python-modules/flaky { };
|
||||||
|
|
||||||
flask = callPackage ../development/python-modules/flask { };
|
flask = callPackage ../development/python-modules/flask { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user