nixpkgs/pkgs/development/python-modules/pytest-black/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 = [ ];
};
}