python312Packages.simplesat: 0.8.2 -> 0.9.0 (#339957)

This commit is contained in:
OTABI Tomoya 2024-09-08 09:15:12 +09:00 committed by GitHub
commit c888b7edb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,14 +4,16 @@
writeText,
lib,
attrs,
six,
mock,
okonomiyaki,
pytestCheckHook,
pyyaml,
setuptools,
six,
}:
let
version = "0.8.2";
format = "setuptools";
version = "0.9.0";
versionFile = writeText "simplesat_ver" ''
version = '${version}'
full_version = '${version}'
@ -24,27 +26,37 @@ in
buildPythonPackage rec {
pname = "simplesat";
inherit version;
propagatedBuildInputs = [
attrs
six
okonomiyaki
];
pyproject = true;
src = fetchFromGitHub {
owner = "enthought";
repo = "sat-solver";
rev = "v${version}";
hash = "sha256-6BQn1W2JGrMmNqgxi+sXx06XzNMcvwqYGMkpD0SSpT8=";
rev = "refs/tags/v${version}";
hash = "sha256-8sUOV42MLM3otG3EKvVzKKGAUpSlaTj850QZxZa62bE=";
};
preConfigure = ''
cp ${versionFile} simplesat/_version.py
'';
dontUseSetuptoolsCheck = true;
build-system = [ setuptools ];
dependencies = [
attrs
okonomiyaki
six
];
pythonImportsCheck = [ "simplesat" ];
nativeCheckInputs = [
mock
pytestCheckHook
pyyaml
];
pytestFlagsArray = [ "simplesat/tests" ];
meta = with lib; {
homepage = "https://github.com/enthought/sat-solver";
description = "Prototype for SAT-based dependency handling";