nixpkgs/pkgs/development/python-modules/perfplot/default.nix

49 lines
833 B
Nix
Raw Normal View History

2019-05-20 15:54:54 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, dufte
2019-05-20 15:54:54 +01:00
, matplotlib
, numpy
, pipdate
, tqdm
, rich
, pytestCheckHook
, pythonOlder
2019-05-20 15:54:54 +01:00
}:
buildPythonPackage rec {
pname = "perfplot";
version = "0.9.6";
disabled = pythonOlder "3.7";
2019-05-20 15:54:54 +01:00
src = fetchFromGitHub {
owner = "nschloe";
repo = pname;
2019-05-20 15:54:54 +01:00
rev = "v${version}";
sha256 = "11f31d6xqxp04693symc2dl8890gjaycrb2a35y5xy023abwir5b";
2019-05-20 15:54:54 +01:00
};
format = "pyproject";
2019-05-20 15:54:54 +01:00
propagatedBuildInputs = [
dufte
2019-05-20 15:54:54 +01:00
matplotlib
numpy
pipdate
rich
2019-05-20 15:54:54 +01:00
tqdm
];
checkInputs = [
pytestCheckHook
2019-05-20 15:54:54 +01:00
];
pythonImportsCheck = [ "perfplot" ];
2019-05-20 15:54:54 +01:00
meta = with lib; {
description = "Performance plots for Python code snippets";
homepage = "https://github.com/nschloe/perfplot";
2019-05-20 15:54:54 +01:00
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
2019-05-20 15:54:54 +01:00
};
}