1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, hatchling
5, pytestCheckHook
6, pythonOlder
7, pytz
8, typing-extensions
9}:
10
11buildPythonPackage rec {
12 pname = "dirty-equals";
13 version = "0.5.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "samuelcolvin";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-yYptO6NPhQRlF0T2eXliw2WBms9uqTZVzdYzGj9pCug=";
23 };
24
25 nativeBuildInputs = [
26 hatchling
27 ];
28
29 propagatedBuildInputs = [
30 pytz
31 typing-extensions
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "dirty_equals"
40 ];
41
42 meta = with lib; {
43 description = "Module for doing dirty (but extremely useful) things with equals";
44 homepage = "https://github.com/samuelcolvin/dirty-equals";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ fab ];
47 };
48}