2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, atomicwrites
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, fetchPypi
|
|
|
|
, GitPython
|
|
|
|
, networkx
|
|
|
|
, pydot
|
|
|
|
, PyGithub
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, toml
|
|
|
|
, tqdm
|
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mathlibtools";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "1.3.1";
|
2022-09-09 14:08:57 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-02 08:20:57 +00:00
|
|
|
hash = "sha256-HwtmrDGInCI5Hl+qhl+7hOBJ3Ux0g8IjoAVa4iAccl8=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
atomicwrites
|
|
|
|
click
|
|
|
|
GitPython
|
|
|
|
networkx
|
|
|
|
pydot
|
|
|
|
PyGithub
|
|
|
|
pyyaml
|
|
|
|
toml
|
|
|
|
tqdm
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
# Requires internet access
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mathlibtools"
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = with lib; {
|
2022-09-09 14:08:57 +00:00
|
|
|
description = "Supporting tool for Lean's mathlib";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/leanprover-community/mathlib-tools";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/leanprover-community/mathlib-tools/raw/v${version}/CHANGELOG.md";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|