1{ lib
2, buildPythonPackage
3, fetchPypi
4, flit-core
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "pep440";
11 version = "0.1.2";
12 format = "flit";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-WLNyRswrE/7hyio8CSyzcE0h7PYhpb27Fo5E5pf20E0=";
19 };
20
21 nativeBuildInputs = [
22 flit-core
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 disabledTestPaths = [
30 # Don't run CLI tests
31 "tests/test_cli.py"
32 ];
33
34 pythonImportsCheck = [
35 "pep440"
36 ];
37
38 meta = with lib; {
39 description = "Python module to check whether versions number match PEP 440";
40 homepage = "https://github.com/Carreau/pep440";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}