Files
nixpkgs/pkgs/development/python-modules/frozenlist/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
cython,
expandvars,
fetchFromGitHub,
pep517,
pytestCheckHook,
pythonOlder,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "frozenlist";
version = "1.7.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aio-libs";
repo = "frozenlist";
tag = "v${version}";
hash = "sha256-aBHX/U1L2mcah80edJFY/iXsM05DVas7lJT8yVTjER8=";
};
postPatch = ''
rm pytest.ini
'';
nativeBuildInputs = [
expandvars
cython
pep517
setuptools
wheel
];
nativeCheckInputs = [ pytestCheckHook ];
preBuild = ''
cython frozenlist/_frozenlist.pyx
'';
pythonImportsCheck = [ "frozenlist" ];
meta = {
description = "Python module for list-like structure";
homepage = "https://github.com/aio-libs/frozenlist";
changelog = "https://github.com/aio-libs/frozenlist/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}