From b1ada7d9ccc106355441f8f5c4114b89c3362fd2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 May 2024 20:37:27 +0200 Subject: [PATCH 1/2] python312Packages.pyfaidx: refactor --- .../python-modules/pyfaidx/default.nix | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pyfaidx/default.nix b/pkgs/development/python-modules/pyfaidx/default.nix index 4999b1dcddf99..c0a5dbd5589ba 100644 --- a/pkgs/development/python-modules/pyfaidx/default.nix +++ b/pkgs/development/python-modules/pyfaidx/default.nix @@ -1,39 +1,38 @@ { lib , buildPythonPackage , fetchPypi +, glibcLocales , importlib-metadata -, nose , numpy +, pytestCheckHook +, pythonOlder , setuptools , setuptools-scm -, six -, glibcLocales -, pytestCheckHook }: 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 = [ + dependencies = [ importlib-metadata - six ]; nativeCheckInputs = [ glibcLocales - nose numpy pytestCheckHook ]; @@ -48,10 +47,11 @@ buildPythonPackage rec { ]; 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"; }; } From f500ab7ac2e68aeff14796eebba8c918e0440c4d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 May 2024 20:37:52 +0200 Subject: [PATCH 2/2] python312Packages.pyfaidx: format with nixfmt --- .../python-modules/pyfaidx/default.nix | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/pyfaidx/default.nix b/pkgs/development/python-modules/pyfaidx/default.nix index c0a5dbd5589ba..551814d9fe81e 100644 --- a/pkgs/development/python-modules/pyfaidx/default.nix +++ b/pkgs/development/python-modules/pyfaidx/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, glibcLocales -, importlib-metadata -, numpy -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + glibcLocales, + importlib-metadata, + numpy, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { setuptools-scm ]; - dependencies = [ - importlib-metadata - ]; + dependencies = [ importlib-metadata ]; nativeCheckInputs = [ glibcLocales @@ -42,9 +41,7 @@ buildPythonPackage rec { "tests/test_Fasta_bgzip.py" ]; - pythonImportsCheck = [ - "pyfaidx" - ]; + pythonImportsCheck = [ "pyfaidx" ]; meta = with lib; { description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index";