nixpkgs/pkgs/development/python-modules/nocaselist/default.nix

39 lines
806 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "nocaselist";
version = "2.0.3";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
hash = "sha256-VXFNqEM/tIQ855dASXfkOF1ePfnkqgD33emD/YdBD+8=";
};
build-system = [ setuptools ];
dependencies = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nocaselist" ];
meta = with lib; {
description = "Case-insensitive list for Python";
homepage = "https://github.com/pywbem/nocaselist";
changelog = "https://github.com/pywbem/nocaselist/blob/${version}/docs/changes.rst";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ freezeboy ];
};
}