python312Packages.freesasa: init at 2.2.1

This commit is contained in:
natsukium
2024-07-26 23:18:56 +09:00
parent 2a7fc4b6ef
commit 21872e303b
2 changed files with 51 additions and 0 deletions
@@ -0,0 +1,47 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cython,
freesasa,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "freesasa";
version = "2.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "freesasa";
repo = "freesasa-python";
rev = "refs/tags/v${version}";
hash = "sha256-/7ymItwXOemY0+IL0k6rWnJI8fAwTFjNXzTV+uf9x9A=";
};
postPatch = ''
ln -s ${freesasa.src}/* lib/
'';
build-system = [
cython
setuptools
];
env.USE_CYTHON = true;
pythonImportsCheck = [ "freesasa" ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test.py" ];
meta = {
description = "FreeSASA Python Module";
homepage = "https://github.com/freesasa/freesasa-python";
changelog = "https://github.com/freesasa/freesasa-python/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}
+4
View File
@@ -4590,6 +4590,10 @@ self: super: with self; {
freertos-gdb = callPackage ../development/python-modules/freertos-gdb { };
freesasa = callPackage ../development/python-modules/freesasa {
inherit (pkgs) freesasa;
};
freetype-py = callPackage ../development/python-modules/freetype-py { };
freezegun = callPackage ../development/python-modules/freezegun { };