mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
44 lines
789 B
Nix
44 lines
789 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, matplotlib
|
|
, numpy
|
|
, packaging
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adjusttext";
|
|
version = "0.7.3.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Phlya";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1a6hizx1cnplj0irn8idgda2lacsb61dw464cwx798pjr1gd401n";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
packaging
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
numpy
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"adjustText"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Iteratively adjust text position in matplotlib plots to minimize overlaps";
|
|
homepage = "https://github.com/Phlya/adjustText";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ samuela ];
|
|
};
|
|
}
|