mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
ebc2389134
diff of `jq <packages.json 'to_entries[]|"\(.key) \(.value.meta.changelog)"' -r`: https://gist.github.com/pbsds/49b2e2ae5c9b967a0972bbc3c2597c12
55 lines
994 B
Nix
55 lines
994 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
cython,
|
|
setuptools,
|
|
wheel,
|
|
pysam,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pywfa";
|
|
version = "0.5.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kcleal";
|
|
repo = "pywfa";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-TeJ7Jq4LR+I1+zeMeBtHZa9dR+CRJJG5sT99tB227P8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pysam
|
|
unittestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
cd pywfa/tests
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pywfa"
|
|
"pywfa.align"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for wavefront alignment using WFA2-lib";
|
|
homepage = "https://github.com/kcleal/pywfa";
|
|
changelog = "https://github.com/kcleal/pywfa/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
};
|
|
}
|