python312Packages.freesasa: init at 2.2.1
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user