Unverified Commit 6d9f80d7 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.yabadaba: 0.2.2 -> 0.3.1 (#401108)

parents 3e0a9414 d5c49691
Loading
Loading
Loading
Loading
+16 −12
Original line number Diff line number Diff line
{
  lib,
  bibtexparser,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  bibtexparser,
  cdcs,
  datamodeldict,
  fetchPypi,
  habanero,
  ipywidgets,
  lxml,
  matplotlib,
  numpy,
  pandas,
  pythonOlder,
  requests,
  scipy,
  setuptools,
  unidecode,
  xmltodict,
  yabadaba,
@@ -25,11 +29,11 @@ buildPythonPackage rec {
  version = "0.4.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-7ujcfFa/cweUtCY2MrEh3bTkwAVzvbF+5AJ4fs5o6bE=";
  src = fetchFromGitHub {
    owner = "usnistgov";
    repo = "potentials";
    tag = "v${version}";
    hash = "sha256-VDA3dQ34kvrs3XMfC0j3T63KrXlmOa/hPvOni/UkgP4=";
  };

  build-system = [ setuptools ];
@@ -56,11 +60,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "potentials" ];

  meta = with lib; {
  meta = {
    description = "Python API database tools for accessing the NIST Interatomic Potentials Repository";
    homepage = "https://github.com/usnistgov/potentials";
    changelog = "https://github.com/usnistgov/potentials/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+21 −16
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  cdcs,
  datamodeldict,
  fetchFromGitHub,
  ipython,
  lxml,
  numpy,
  pandas,
  pillow,
  pymongo,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  tqdm,

  # tests
  pytestCheckHook,
  writableTmpDirAsHomeHook,
}:

buildPythonPackage rec {
  pname = "yabadaba";
  version = "0.2.2";
  version = "0.3.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "usnistgov";
    repo = "yabadaba";
    tag = "v${version}";
    hash = "sha256-NfvnUrTnOeNfiTMrcRtWU3a/Wb6qsDeQlk5jwZ1OpgI=";
    hash = "sha256-DpkJvi4w0aoD7RC2IFORy8uZ12TuLdcJxfLaSGyATac=";
  };

  build-system = [ setuptools ];
@@ -38,23 +43,23 @@ buildPythonPackage rec {
    lxml
    numpy
    pandas
    pillow
    pymongo
    tqdm
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
    writableTmpDirAsHomeHook
  ];

  pythonImportsCheck = [ "yabadaba" ];

  preCheck = ''
    export HOME=$(mktemp -d);
  '';

  meta = with lib; {
  meta = {
    description = "Abstraction layer allowing for common interactions with databases and records";
    homepage = "https://github.com/usnistgov/yabadaba";
    changelog = "https://github.com/usnistgov/yabadaba/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}