Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / bidict / default.nix
blob811fb7055fea701ee5d2b9db7f78cc79b6efbbab
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , hypothesis
6 , pytest-xdist
7 , pytestCheckHook
8 , typing-extensions
9 , pythonOlder
10 , wheel
13 buildPythonPackage rec {
14   pname = "bidict";
15   version = "0.23.1";
16   pyproject = true;
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "jab";
22     repo = "bidict";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-WE0YaRT4a/byvU2pzcByuf1DfMlOpYA9i0PPrKXsS+M=";
25   };
27   build-system = [
28     setuptools
29     wheel
30   ];
32   nativeCheckInputs = [
33     hypothesis
34     pytest-xdist
35     pytestCheckHook
36     typing-extensions
37   ];
39   # Remove the bundled pytest.ini, which adds options to run additional integration
40   # tests that are overkill for our purposes.
41   preCheck = ''
42     rm pytest.ini
43   '';
45   pythonImportsCheck = [ "bidict" ];
47   meta = with lib; {
48     homepage = "https://bidict.readthedocs.io";
49     changelog = "https://bidict.readthedocs.io/changelog.html";
50     description = "The bidirectional mapping library for Python.";
51     license = licenses.mpl20;
52     maintainers = with maintainers; [ jab jakewaksbaum ];
53   };