blob: c78aacc8d5a21d3b60d871ed5b1cdf368fde2a9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, appdirs
, black
, importlib-metadata
, isPy3k
, jedi
, prompt-toolkit
, pygments
}:
buildPythonPackage rec {
pname = "ptpython";
version = "3.0.22";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-wJezJEBgFKAFxrCfSTu73eVx5BI2CvK6FVGHOhDDbPg=";
};
propagatedBuildInputs = [
appdirs
black # yes, this is in install_requires
jedi
prompt-toolkit
pygments
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
# no tests to run
doCheck = false;
pythonImportsCheck = [
"ptpython"
];
meta = with lib; {
description = "An advanced Python REPL";
homepage = "https://github.com/prompt-toolkit/ptpython";
changelog = "https://github.com/prompt-toolkit/ptpython/blob/${version}/CHANGELOG";
license = licenses.bsd3;
maintainers = with maintainers; [ mlieberman85 ];
};
}
|