nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pydantic, 7 pytest-examples, 8 pytestCheckHook, 9 pytz, 10}: 11 12let 13 dirty-equals = buildPythonPackage rec { 14 pname = "dirty-equals"; 15 version = "0.11.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "samuelcolvin"; 20 repo = "dirty-equals"; 21 tag = "v${version}"; 22 hash = "sha256-JFKWrbMdxhvSBbjQ+S9HPW87CK+5ZZiXHg8Wltlv2YY="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 dependencies = [ pytz ]; 28 29 doCheck = false; 30 31 passthru.tests.pytest = dirty-equals.overrideAttrs { doCheck = true; }; 32 33 nativeCheckInputs = [ 34 pydantic 35 pytest-examples 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "dirty_equals" ]; 40 41 meta = { 42 description = "Module for doing dirty (but extremely useful) things with equals"; 43 homepage = "https://github.com/samuelcolvin/dirty-equals"; 44 changelog = "https://github.com/samuelcolvin/dirty-equals/releases/tag/${src.tag}"; 45 license = with lib.licenses; [ mit ]; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48 }; 49in 50dirty-equals