2018-11-25 09:22:25 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub
|
|
|
|
, click, numpy, pyparsing
|
2019-10-29 08:52:32 +00:00
|
|
|
, pytest, hypothesis
|
2018-11-25 09:22:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snuggs";
|
2019-10-29 08:52:32 +00:00
|
|
|
version = "1.4.7";
|
2018-11-25 09:22:25 +00:00
|
|
|
|
|
|
|
# Pypi doesn't ship the tests, so we fetch directly from GitHub
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mapbox";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-10-29 08:52:32 +00:00
|
|
|
sha256 = "1p3lh9s2ylsnrzbs931y2vn7mp2y2xskgqmh767c9l1a33shfgwf";
|
2018-11-25 09:22:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click numpy pyparsing ];
|
|
|
|
|
2019-10-29 08:52:32 +00:00
|
|
|
checkInputs = [ pytest hypothesis ];
|
2018-11-25 09:22:25 +00:00
|
|
|
checkPhase = "pytest test_snuggs.py";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "S-expressions for Numpy";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://github.com/mapbox/snuggs;
|
|
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
|
|
};
|
|
|
|
}
|