Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, buildPythonPackage 4, pythonOlder 5, fetchFromGitHub 6, setuptools 7, setuptools-scm 8, jaraco_text 9, jaraco_collections 10, keyring 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "jaraco-email"; 16 version = "3.1.0"; 17 18 disabled = pythonOlder "3.7"; 19 20 format = "pyproject"; 21 22 src = fetchFromGitHub { 23 owner = "jaraco"; 24 repo = "jaraco.email"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-MR/SX5jmZvEMULgvQbh0JBZjIosNCPWl1wvEoJbdw4Y="; 27 }; 28 29 nativeBuildInputs = [ 30 setuptools 31 setuptools-scm 32 ]; 33 34 SETUPTOOLS_SCM_PRETEND_VERSION = version; 35 36 propagatedBuildInputs = [ 37 jaraco_text 38 jaraco_collections 39 keyring 40 ]; 41 42 pythonImportsCheck = [ "jaraco.email" ]; 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 ]; 47 48 meta = { 49 changelog = "https://github.com/jaraco/jaraco.email/blob/${src.rev}/CHANGES.rst"; 50 description = "E-mail facilities by jaraco"; 51 homepage = "https://github.com/jaraco/jaraco.email"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ dotlambda ]; 54 }; 55}