mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 07:16:34 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
42 lines
740 B
Nix
42 lines
740 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
black,
|
|
pytest,
|
|
setuptools-scm,
|
|
toml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-black";
|
|
version = "0.6.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "pytest_black";
|
|
inherit version;
|
|
sha256 = "sha256-7Ld0VfN5gFy0vY9FqBOjdUw7vuMZmt8bNmXA39CGtRE=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
dependencies = [
|
|
black
|
|
toml
|
|
];
|
|
|
|
# does not contain tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pytest_black" ];
|
|
|
|
meta = {
|
|
description = "Pytest plugin to enable format checking with black";
|
|
homepage = "https://github.com/shopkeep/pytest-black";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|