1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pydantic, 7 pytest-examples, 8 pytestCheckHook, 9 pythonOlder, 10 pytz, 11}: 12 13let 14 dirty-equals = buildPythonPackage rec { 15 pname = "dirty-equals"; 16 version = "0.7.1-post0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "samuelcolvin"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-U6DNluthDgxzh6IOaKrN/JhX4u+ztY/jVp9IKh0iP34="; 26 }; 27 28 nativeBuildInputs = [ hatchling ]; 29 30 propagatedBuildInputs = [ pytz ]; 31 32 doCheck = false; 33 passthru.tests.pytest = dirty-equals.overrideAttrs { doCheck = true; }; 34 35 nativeCheckInputs = [ 36 pydantic 37 pytest-examples 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "dirty_equals" ]; 42 43 meta = with lib; { 44 description = "Module for doing dirty (but extremely useful) things with equals"; 45 homepage = "https://github.com/samuelcolvin/dirty-equals"; 46 changelog = "https://github.com/samuelcolvin/dirty-equals/releases/tag/v${version}"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50 }; 51in 52dirty-equals