python312Packages.atomiclong: refactor

- migrate to pytestCheckHook
- update build-system
- add pythonImportsCheck
This commit is contained in:
Fabian Affolter
2024-05-21 23:00:44 +02:00
parent 27851edc9d
commit 77aba030fd
@@ -1,17 +1,39 @@
{ lib, buildPythonPackage, fetchPypi, pytest, cffi }:
{ lib
, buildPythonPackage
, cffi
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "atomiclong";
version = "0.1.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "1gjbc9lvpkgg8vj7dspif1gz9aq4flkhxia16qj6yvb7rp27h4yb";
hash = "sha256-yxN4xM1nbW8kNkHFDid1BKv0X3Dx6nbkRu/Nu2liS74=";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [ cffi ];
build-system = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
dependencies = [
cffi
];
pythonImportsCheck = [
"atomiclong"
];
meta = with lib; {
description = "Long data type with atomic operations using CFFI";