mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
python312Packages.simplesat: 0.9.0 -> 0.9.1
Diff: https://github.com/enthought/sat-solver/compare/refs/tags/v0.9.0...v0.9.1 Changelog: https://github.com/enthought/sat-solver/blob/v0.9.1/CHANGES.rst
This commit is contained in:
parent
15cfb56406
commit
7acd467a6c
@ -1,42 +1,34 @@
|
|||||||
{
|
{
|
||||||
buildPythonPackage,
|
|
||||||
fetchFromGitHub,
|
|
||||||
writeText,
|
|
||||||
lib,
|
lib,
|
||||||
attrs,
|
attrs,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
mock,
|
mock,
|
||||||
okonomiyaki,
|
okonomiyaki,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
|
pythonOlder,
|
||||||
pyyaml,
|
pyyaml,
|
||||||
setuptools,
|
setuptools,
|
||||||
six,
|
six,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
version = "0.9.0";
|
|
||||||
versionFile = writeText "simplesat_ver" ''
|
|
||||||
version = '${version}'
|
|
||||||
full_version = '${version}'
|
|
||||||
git_revision = '0000000000000000000000000000000000000000'
|
|
||||||
is_released = True
|
|
||||||
msi_version = '${version}.000'
|
|
||||||
version_info = (${lib.versions.major version}, ${lib.versions.minor version}, ${lib.versions.patch version}, 'final', 0)
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "simplesat";
|
pname = "simplesat";
|
||||||
inherit version;
|
version = "0.9.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "enthought";
|
owner = "enthought";
|
||||||
repo = "sat-solver";
|
repo = "sat-solver";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-8sUOV42MLM3otG3EKvVzKKGAUpSlaTj850QZxZa62bE=";
|
hash = "sha256-/fBnpf1DtaF+wQYZztcB8Y20/ZMYxrF3fH5qRsMucL0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
postPatch = ''
|
||||||
cp ${versionFile} simplesat/_version.py
|
substituteInPlace setup.cfg \
|
||||||
|
--replace-fail "version = file: VERSION" "version = ${version}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
build-system = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
@ -47,20 +39,26 @@ buildPythonPackage rec {
|
|||||||
six
|
six
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "simplesat" ];
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
mock
|
mock
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pyyaml
|
pyyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "simplesat" ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
substituteInPlace simplesat/tests/test_pool.py \
|
||||||
|
--replace-fail "assertRaisesRegexp" "assertRaisesRegex"
|
||||||
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [ "simplesat/tests" ];
|
pytestFlagsArray = [ "simplesat/tests" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/enthought/sat-solver";
|
|
||||||
description = "Prototype for SAT-based dependency handling";
|
description = "Prototype for SAT-based dependency handling";
|
||||||
maintainers = with maintainers; [ genericnerdyusername ];
|
homepage = "https://github.com/enthought/sat-solver";
|
||||||
|
changelog = "https://github.com/enthought/sat-solver/blob/v${version}/CHANGES.rst";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ genericnerdyusername ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user