1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, pythonOlder 7, pytz 8, typing-extensions 9}: 10 11buildPythonPackage rec { 12 pname = "dirty-equals"; 13 version = "0.4"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "samuelcolvin"; 20 repo = pname; 21 rev = "v${version}"; 22 hash = "sha256-rh7N/VRx4sv/MhhGPkaYCn2d19Sv5er2CkG6/fJuXX4="; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 propagatedBuildInputs = [ 30 pytz 31 ] ++ lib.optionals (pythonOlder "3.8") [ 32 typing-extensions 33 ]; 34 35 checkInputs = [ 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "dirty_equals" 41 ]; 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 license = with licenses; [ mit ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}