nixpkgs-suyu/pkgs/development/python-modules/iodata/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
890 B
Nix

{ buildPythonPackage, lib, fetchFromGitHub, numpy, scipy, attrs, cython, nose }:
buildPythonPackage rec {
pname = "iodata";
version = "1.0.0a2";
format = "setuptools";
src = fetchFromGitHub {
owner = "theochem";
repo = pname;
rev = version;
hash = "sha256-GFTCYE19Re7WLhV8eU+0i8OMp/Tsms/Xj9DRTcgjcz4=";
};
nativeBuildInputs = [ cython nose ];
propagatedBuildInputs = [ numpy scipy attrs ];
pythonImportsCheck = [ "iodata" ];
doCheck = false; # Requires roberto or nose and a lenghtly setup to find the cython modules
meta = with lib; {
description = "Python library for reading, writing, and converting computational chemistry file formats and generating input files";
mainProgram = "iodata-convert";
homepage = "https://github.com/theochem/iodata";
license = licenses.lgpl3Only;
maintainers = [ maintainers.sheepforce ];
};
}