mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "frozendict";
|
|
version = "2.3.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Marco-Sulla";
|
|
repo = "python-frozendict";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4a0DvZOzNJqpop7wi+FagUR+8oaekz4EDNIYdUaAWC8=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"frozendict"
|
|
];
|
|
|
|
preCheck = ''
|
|
pushd test
|
|
'';
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.11") [
|
|
# https://github.com/Marco-Sulla/python-frozendict/issues/68
|
|
"test_c_extension"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for immutable dictionary";
|
|
homepage = "https://github.com/Marco-Sulla/python-frozendict";
|
|
changelog = "https://github.com/Marco-Sulla/python-frozendict/releases/tag/v${version}";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ pbsds ];
|
|
};
|
|
}
|