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