depot/third_party/nixpkgs/pkgs/development/python-modules/snuggs/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
724 B
Nix

{ buildPythonPackage, lib, fetchFromGitHub
, click, numpy, pyparsing
, pytest, hypothesis
}:
buildPythonPackage rec {
pname = "snuggs";
version = "1.4.7";
# Pypi doesn't ship the tests, so we fetch directly from GitHub
src = fetchFromGitHub {
owner = "mapbox";
repo = pname;
rev = version;
sha256 = "1p3lh9s2ylsnrzbs931y2vn7mp2y2xskgqmh767c9l1a33shfgwf";
};
propagatedBuildInputs = [ click numpy pyparsing ];
checkInputs = [ pytest hypothesis ];
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 ];
};
}