depot/third_party/nixpkgs/pkgs/development/python-modules/multiset/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
743 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "multiset";
version = "3.1.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-jpPlhvaI0uKwD6WEPiqC9p6XHhrHrT14+dKkdgjem6Y=";
};
postPatch = ''
# Drop broken version specifier
sed -i '/python_requires/d' setup.cfg
'';
nativeBuildInputs = [
setuptools
setuptools-scm
];
pythonImportsCheck = [ "multiset" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Implementation of a multiset";
homepage = "https://github.com/wheerd/multiset";
license = licenses.mit;
maintainers = [ ];
};
}