Unverified Commit 4ff98df7 authored by natsukium's avatar natsukium
Browse files

python312Packages.simplesat: modernize

parent aa2031c2
Loading
Loading
Loading
Loading
+22 −10
Original line number Diff line number Diff line
@@ -4,14 +4,16 @@
  writeText,
  lib,
  attrs,
  six,
  mock,
  okonomiyaki,
  pytestCheckHook,
  pyyaml,
  setuptools,
  six,
}:

let
  version = "0.9.0";
  format = "setuptools";

  versionFile = writeText "simplesat_ver" ''
    version = '${version}'
    full_version = '${version}'
@@ -24,12 +26,7 @@ in
buildPythonPackage rec {
  pname = "simplesat";
  inherit version;

  propagatedBuildInputs = [
    attrs
    six
    okonomiyaki
  ];
  pyproject = true;

  src = fetchFromGitHub {
    owner = "enthought";
@@ -41,10 +38,25 @@ buildPythonPackage rec {
  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";