nixpkgs/pkgs/development/python-modules/nampa/default.nix
2024-03-27 18:35:25 +01:00

44 lines
864 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, pytest7CheckHook
}:
buildPythonPackage rec {
pname = "nampa";
version = "1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "thebabush";
repo = pname;
rev = version;
sha256 = "14b6xjm497wrfw4kv24zhsvz2l6zknvx36w8i754hfwz3s3fsl6a";
};
propagatedBuildInputs = [
future
];
nativeCheckInputs = [
pytest7CheckHook
];
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";
mainProgram = "dumpsig.py";
homepage = "https://github.com/thebabush/nampa";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ fab ];
};
}