Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.pyfaidx: refactor #311440

Merged
merged 2 commits into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 20 additions & 23 deletions pkgs/development/python-modules/pyfaidx/default.nix
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, importlib-metadata
, nose
, numpy
, setuptools
, setuptools-scm
, six
, glibcLocales
, pytestCheckHook
{
lib,
buildPythonPackage,
fetchPypi,
glibcLocales,
importlib-metadata,
numpy,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
}:

buildPythonPackage rec {
pname = "pyfaidx";
version = "0.8.1.1";
format = "pyproject";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
hash = "sha256-bwSCNSYZ8sxWADyiIyG9sNB2S2VnlbweQGKx+psIaGs=";
};

nativeBuildInputs = [
build-system = [
setuptools
setuptools-scm
];

propagatedBuildInputs = [
importlib-metadata
six
];
dependencies = [ importlib-metadata ];

nativeCheckInputs = [
glibcLocales
nose
numpy
pytestCheckHook
];
Expand All @@ -43,15 +41,14 @@ buildPythonPackage rec {
"tests/test_Fasta_bgzip.py"
];

pythonImportsCheck = [
"pyfaidx"
];
pythonImportsCheck = [ "pyfaidx" ];

meta = with lib; {
homepage = "https://github.com/mdshw5/pyfaidx";
description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index";
mainProgram = "faidx";
homepage = "https://github.com/mdshw5/pyfaidx";
changelog = "https://github.com/mdshw5/pyfaidx/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ jbedo ];
mainProgram = "faidx";
};
}