Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, python, glibcLocales, fetchFromGitHub, pytest-cov-stub, pytestCheckHook, setuptools, six,}:
buildPythonPackage rec { pname = "mail-parser"; version = "4.1.3"; pyproject = true;
src = fetchFromGitHub { owner = "SpamScope"; repo = "mail-parser"; tag = version; hash = "sha256-aNPBWxAysxHTuzaupi/CSSBUsGTsFanuPldz6BRr2V0="; };
LC_ALL = "en_US.utf-8";
nativeBuildInputs = [ glibcLocales ];
build-system = [ setuptools ];
pythonRemoveDeps = [ "ipaddress" ];
dependencies = [ six ];
pythonImportsCheck = [ "mailparser" ];
nativeCheckInputs = [ pytest-cov-stub pytestCheckHook ];
# Taken from .travis.yml postCheck = '' ${python.interpreter} -m mailparser -v ${python.interpreter} -m mailparser -h ${python.interpreter} -m mailparser -f tests/mails/mail_malformed_3 -j cat tests/mails/mail_malformed_3 | ${python.interpreter} -m mailparser -k -j '';
meta = { description = "Mail parser for python 2 and 3"; mainProgram = "mailparser"; homepage = "https://github.com/SpamScope/mail-parser"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ psyanticy ]; };}