mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
30 lines
730 B
Nix
30 lines
730 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 ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|