{ lib, buildPythonPackage, fetchFromGitHub, setuptools, setuptools-scm, parse, pytestCheckHook, six, }: buildPythonPackage rec { pname = "parse-type"; version = "0.6.6"; pyproject = true; src = fetchFromGitHub { owner = "jenisys"; repo = "parse_type"; tag = "v${version}"; hash = "sha256-4ZQNxvYWqYXcMj3vEtaEdikuJ38llGpmuutIOtr3lz0="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ parse six ]; nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pytest.ini \ --replace "--metadata PACKAGE_UNDER_TEST parse_type" "" \ --replace "--metadata PACKAGE_VERSION ${version}" "" \ --replace "--html=build/testing/report.html --self-contained-html" "" \ --replace "--junit-xml=build/testing/report.xml" "" ''; pythonImportsCheck = [ "parse_type" ]; meta = { description = "Simplifies to build parse types based on the parse module"; homepage = "https://github.com/jenisys/parse_type"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ alunduil ]; }; }