nixpkgs/pkgs/development/python-modules/bidict/default.nix
Joshua Bronson 76ea2eb90f python312Packages.bidict: minor fixes
* Correct minimum supported Python version.

  Bidict 0.23.1 (which nixpkgs recently updated to) dropped support for
  Python < 3.8.

* Skip unnecessary integration tests.

* Remove unnecessary dependencies from nativeCheckInputs.

* Fix metadata:
  * Update outdated description string.
  * Use better homepage and changelog links.
2024-03-25 14:50:28 -04:00

56 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, hypothesis
, pytest-xdist
, pytestCheckHook
, typing-extensions
, pythonOlder
, wheel
}:
buildPythonPackage rec {
pname = "bidict";
version = "0.23.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jab";
repo = "bidict";
rev = "refs/tags/v${version}";
hash = "sha256-WE0YaRT4a/byvU2pzcByuf1DfMlOpYA9i0PPrKXsS+M=";
};
build-system = [
setuptools
wheel
];
nativeCheckInputs = [
hypothesis
pytest-xdist
pytestCheckHook
typing-extensions
];
pytestFlagsArray = [
# Pass -c /dev/null so that pytest does not use the bundled pytest.ini, which adds
# options to run additional integration tests that are overkill for our purposes.
"-c"
"/dev/null"
];
pythonImportsCheck = [ "bidict" ];
meta = with lib; {
homepage = "https://bidict.readthedocs.io";
changelog = "https://bidict.readthedocs.io/changelog.html";
description = "The bidirectional mapping library for Python.";
license = licenses.mpl20;
maintainers = with maintainers; [ jakewaksbaum ];
};
}