1 { lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "pylint-venv";
10 version = "2.3.0";
11 format = "pyproject";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "jgosmann";
17 repo = pname;
18 rev = "refs/tags/v${version}";
19 hash = "sha256-x36OsTRzrN3NWrMpJ34ZHRsw4cQlo49AnJNr5kP8/aQ=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 # Module has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "pylint_venv"
31 ];
32
33 meta = with lib; {
34 description = "Module to make pylint respect virtual environments";
35 homepage = "https://github.com/jgosmann/pylint-venv/";
36 license = with licenses; [ mit ];
37 maintainers = with maintainers; [ fab ];
38 };
39}