python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / bidict / default.nix
blobf333f2f3dbca335d2fad900898d457f224d60ea4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   hypothesis,
7   pytest-xdist,
8   pytestCheckHook,
9   typing-extensions,
10   pythonOlder,
11   wheel,
14 buildPythonPackage rec {
15   pname = "bidict";
16   version = "0.23.1";
17   pyproject = true;
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "jab";
23     repo = "bidict";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-WE0YaRT4a/byvU2pzcByuf1DfMlOpYA9i0PPrKXsS+M=";
26   };
28   build-system = [
29     setuptools
30     wheel
31   ];
33   nativeCheckInputs = [
34     hypothesis
35     pytest-xdist
36     pytestCheckHook
37     typing-extensions
38   ];
40   # Remove the bundled pytest.ini, which adds options to run additional integration
41   # tests that are overkill for our purposes.
42   preCheck = ''
43     rm pytest.ini
44   '';
46   pythonImportsCheck = [ "bidict" ];
48   meta = with lib; {
49     homepage = "https://bidict.readthedocs.io";
50     changelog = "https://bidict.readthedocs.io/changelog.html";
51     description = "Bidirectional mapping library for Python";
52     license = licenses.mpl20;
53     maintainers = with maintainers; [
54       jab
55       jakewaksbaum
56     ];
57   };