mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43: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.
42 lines
805 B
Nix
42 lines
805 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, future
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nampa";
|
|
version = "1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thebabush";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "14b6xjm497wrfw4kv24zhsvz2l6zknvx36w8i754hfwz3s3fsl6a";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
# https://github.com/thebabush/nampa/pull/13
|
|
substituteInPlace setup.py \
|
|
--replace "0.1.1" "${version}"
|
|
'';
|
|
|
|
pythonImportsCheck = [ "nampa" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python implementation of the FLIRT technology";
|
|
homepage = "https://github.com/thebabush/nampa";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|