nixpkgs/pkgs/development/python-modules/simplesat/default.nix
Michael Daniels f6d71bf3bd
maintainers: drop genericnerdyusername
Per their profile, no nixpkgs activity since December 2023.
2026-01-12 16:49:33 -05:00

56 lines
1 KiB
Nix

{
lib,
attrs,
buildPythonPackage,
fetchFromGitHub,
mock,
okonomiyaki,
pytestCheckHook,
pyyaml,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "simplesat";
version = "0.9.2";
pyproject = true;
src = fetchFromGitHub {
owner = "enthought";
repo = "sat-solver";
tag = "v${version}";
hash = "sha256-C3AQN999iuckaY9I0RTI8Uj6hrV4UB1XYvua5VG8hHw=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace-fail "version = file: VERSION" "version = ${version}"
'';
build-system = [ setuptools ];
dependencies = [
attrs
okonomiyaki
six
];
nativeCheckInputs = [
mock
pytestCheckHook
pyyaml
];
pythonImportsCheck = [ "simplesat" ];
enabledTestPaths = [ "simplesat/tests" ];
meta = {
description = "Prototype for SAT-based dependency handling";
homepage = "https://github.com/enthought/sat-solver";
changelog = "https://github.com/enthought/sat-solver/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}