Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi 2, black 3, pytest 4, setuptools-scm 5, toml 6}: 7 8buildPythonPackage rec { 9 pname = "pytest-black"; 10 version = "0.3.12"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1d339b004f764d6cd0f06e690f6dd748df3d62e6fe1a692d6a5500ac2c5b75a5"; 15 }; 16 17 nativeBuildInputs = [ setuptools-scm ]; 18 19 buildInputs = [ pytest ]; 20 21 propagatedBuildInputs = [ black toml ]; 22 23 # does not contain tests 24 doCheck = false; 25 pythonImportsCheck = [ "pytest_black" ]; 26 27 meta = with lib; { 28 description = "A pytest plugin to enable format checking with black"; 29 homepage = "https://github.com/shopkeep/pytest-black"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ jonringer ]; 32 }; 33}