mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
numpy,
|
|
ply,
|
|
prettytable,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "pycifrw";
|
|
version = "5.0.1";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jamesrhester";
|
|
repo = "pycifrw";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-b55+Vb2H/ADl586o5ch0X4HurwsbbgDg5XS5/8QhFZM=";
|
|
};
|
|
|
|
preBuild = ''
|
|
make -C src Parsers
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
prettytable
|
|
ply
|
|
];
|
|
|
|
# Requires external dictionaries (dics/DDLm/cif_mag.dic) which are not available
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "CifFile" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Python library for reading and writing CIF files";
|
|
homepage = "https://github.com/jamesrhester/pycifrw";
|
|
changelog = "https://github.com/jamesrhester/pycifrw/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.psfl;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|