Skip to content

Commit

Permalink
cclib: 1.8.1b0 -> 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepforce committed Oct 21, 2024
1 parent e700ff0 commit 16ec83d
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions pkgs/python-by-name/cclib/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,30 @@

buildPythonPackage rec {
pname = "cclib";
version = "1.8.1b0";
version = "1.8.1";

src = fetchFromGitHub {
owner = "cclib";
repo = pname;
rev = "07590622dbd571c31f8b874697ce024908345d9a";
hash = "sha256-w9o2kBRS6UqTn4HmBSCvx008uUBzYFRaFk0pfY2nM7I=";
rev = "v${version}";
hash = "sha256-XYFVSJ11MGx2dq/yYa5jaC2XsrStZCT5WzwSCelEV3U=";
};

pyproject = true;

nativeBuildInputs = [
postPatch = ''
substituteInPlace pyproject.toml --replace-fail '"versioningit~=2.0"' ""
sed -i "/versioningit>=/d" pyproject.toml
sed -i '/^name =.*/a version = "${version}"' pyproject.toml
sed -i "/dynamic =/d" pyproject.toml
echo '__version__ = "${version}"' > cclib/_version.py
'';

build-system = [
setuptools
];

propagatedBuildInputs = [
dependencies = [
numpy
scipy
periodictable
Expand All @@ -52,7 +60,9 @@ buildPythonPackage rec {
pyquante
];

checkInputs = [ pytestCheckHook ];
nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "cclib" ];

disabledTests = [
"test_url_io"
Expand Down

0 comments on commit 16ec83d

Please sign in to comment.