1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, setuptools-scm
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "multiset";
11 version = "3.0.1";
12 format = "pyproject";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-5FZxyug4Wo5iSKmwejqDKAwtDMQxJxMFjPus3F7Jlz4=";
17 };
18
19 nativeBuildInputs = [
20 setuptools
21 setuptools-scm
22 ];
23
24 postPatch = ''
25 # Drop broken version specifier
26 sed -i '/python_requires/d' setup.cfg
27 '';
28
29 pythonImportsCheck = [
30 "multiset"
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 meta = with lib; {
38 description = "An implementation of a multiset";
39 homepage = "https://github.com/wheerd/multiset";
40 license = licenses.mit;
41 maintainers = [ maintainers.costrouc ];
42 };
43}