Merge pull request #296187 from jab/bidict

python312Packages.bidict: minor fixes
This commit is contained in:
Martin Weinelt 2024-03-26 14:09:18 +01:00 committed by GitHub
commit 75248d386d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,16 +2,12 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, setuptools , setuptools
, sphinx
, hypothesis , hypothesis
, py
, pytest-xdist , pytest-xdist
, pytestCheckHook , pytestCheckHook
, pytest-benchmark
, sortedcollections
, sortedcontainers
, typing-extensions , typing-extensions
, pythonOlder , pythonOlder
, wheel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -19,7 +15,7 @@ buildPythonPackage rec {
version = "0.23.1"; version = "0.23.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jab"; owner = "jab";
@ -28,31 +24,31 @@ buildPythonPackage rec {
hash = "sha256-WE0YaRT4a/byvU2pzcByuf1DfMlOpYA9i0PPrKXsS+M="; hash = "sha256-WE0YaRT4a/byvU2pzcByuf1DfMlOpYA9i0PPrKXsS+M=";
}; };
nativeBuildInputs = [ build-system = [
setuptools setuptools
]; wheel
propagatedBuildInputs = [
sphinx
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
hypothesis hypothesis
py
pytest-xdist pytest-xdist
pytestCheckHook pytestCheckHook
pytest-benchmark
sortedcollections
sortedcontainers
typing-extensions 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" ]; pythonImportsCheck = [ "bidict" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/jab/bidict"; homepage = "https://bidict.readthedocs.io";
changelog = "https://github.com/jab/bidict/blob/v${version}/CHANGELOG.rst"; changelog = "https://bidict.readthedocs.io/changelog.html";
description = "Efficient, Pythonic bidirectional map data structures and related functionality"; description = "The bidirectional mapping library for Python.";
license = licenses.mpl20; license = licenses.mpl20;
maintainers = with maintainers; [ jakewaksbaum ]; maintainers = with maintainers; [ jakewaksbaum ];
}; };