1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5}:
6
7buildPythonPackage rec {
8 pname = "first";
9 version = "2.0.2";
10 format = "setuptools";
11
12 disabled = pythonOlder "3.7";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-/yhbCMVfjJfOTqcBJ0OvJJXJ8SkXhfFjcivTb2r2078=";
17 };
18
19 doCheck = false; # no tests
20
21 pythonImportsCheck = [
22 "first"
23 ];
24
25 meta = with lib; {
26 description = "The function you always missed in Python";
27 homepage = "https://github.com/hynek/first/";
28 changelog = "https://github.com/hynek/first/blob/${version}/HISTORY.rst";
29 license = licenses.mit;
30 maintainers = with maintainers; [ zimbatm ];
31 };
32}