Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 55 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub, setuptools, pytest-mock, pytestCheckHook, pythonOlder, six}:
buildPythonPackage rec { pname = "headerparser"; version = "0.4.0"; format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "jwodder"; repo = pname; rev = "v${version}"; hash = "sha256-KJJt85iC/4oBoIelB2zUJVyHSppFem/22v6F30P5nYM="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ pytest-mock pytestCheckHook ];
postPatch = '' substituteInPlace tox.ini \ --replace "--cov=headerparser" "" \ --replace "--no-cov-on-fail" "" \ --replace "--flakes" "" '';
pythonImportsCheck = [ "headerparser" ];
meta = with lib; { description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers"; homepage = "https://github.com/jwodder/headerparser"; license = with licenses; [ mit ]; maintainers = with maintainers; [ ayazhafiz ]; };}