1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7 wheel,
8}:
9
10buildPythonPackage rec {
11 pname = "parts";
12 version = "2.0.0";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-wQgiwr7iOBvy24/w1C311PivWLtXLD/Djs34zo1Zid4=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 wheel
25 ];
26
27 # Project has no tests
28 doCheck = false;
29
30 pythonImportsCheck = [ "parts" ];
31
32 meta = with lib; {
33 description = "Library for common list functions related to partitioning lists";
34 homepage = "https://github.com/lapets/parts";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ fab ];
37 };
38}