Merge pull request #313487 from fabaff/atomiclong-refactor

python312Packages.atomiclong: refactor
This commit is contained in:
Fabian Affolter 2024-05-22 08:24:03 +02:00 committed by GitHub
commit c516d64982
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,17 +1,32 @@
{ lib, buildPythonPackage, fetchPypi, pytest, cffi }: {
lib,
buildPythonPackage,
cffi,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "atomiclong"; pname = "atomiclong";
version = "0.1.1"; version = "0.1.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1gjbc9lvpkgg8vj7dspif1gz9aq4flkhxia16qj6yvb7rp27h4yb"; hash = "sha256-yxN4xM1nbW8kNkHFDid1BKv0X3Dx6nbkRu/Nu2liS74=";
}; };
buildInputs = [ pytest ]; build-system = [ setuptools ];
propagatedBuildInputs = [ cffi ];
nativeCheckInputs = [ pytestCheckHook ];
dependencies = [ cffi ];
pythonImportsCheck = [ "atomiclong" ];
meta = with lib; { meta = with lib; {
description = "Long data type with atomic operations using CFFI"; description = "Long data type with atomic operations using CFFI";