Update aider (#375634)
[NixPkgs.git] / pkgs / development / python-modules / orderly-set / default.nix
blobca588ecacc475da6ef29722dd2104bb3b54c6a72
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
7   # build-system
8   setuptools,
10   # tests
11   pytestCheckHook,
14 buildPythonPackage rec {
15   pname = "orderly-set";
16   version = "5.2.2";
17   pyproject = true;
19   src = fetchFromGitHub {
20     owner = "seperman";
21     repo = "orderly-set";
22     tag = version;
23     hash = "sha256-ZDo5fSHD0lCn9CRQtWK10QeZoOhuXG3LR3KA/to9gpE=";
24   };
25   patches = [
26     # https://github.com/seperman/orderly-set/pull/5
27     (fetchpatch {
28       name = "do-not-import-mypy.patch";
29       url = "https://github.com/seperman/orderly-set/commit/34362084868a081b8ebaaf1f13c93a7a798ef557.patch";
30       hash = "sha256-eKbnA31ykm5fH0om6cfOaMpy+ZNNWRDkHieaUIHF8OM=";
31     })
32   ];
34   build-system = [
35     setuptools
36   ];
38   pythonImportsCheck = [
39     "orderly_set"
40   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43   ];
44   disabledTests = [
45     # Statically analyzes types, can be disabled so that mypy won't be needed.
46     "test_typing_mypy"
47   ];
49   meta = {
50     description = "Orderly Set previously known as Ordered Set";
51     homepage = "https://github.com/seperman/orderly-set";
52     changelog = "https://github.com/seperman/orderly-set/blob/${src.rev}/CHANGELOG.md";
53     license = lib.licenses.mit;
54     maintainers = with lib.maintainers; [ doronbehar ];
55   };