python311Packages.craft-application: refactor
This commit is contained in:
parent
97202d9114
commit
7c611d248c
|
@ -1,35 +1,37 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
git,
|
||||
craft-archives,
|
||||
craft-cli,
|
||||
craft-grammar,
|
||||
craft-parts,
|
||||
craft-providers,
|
||||
fetchFromGitHub,
|
||||
git,
|
||||
hypothesis,
|
||||
nix-update-script,
|
||||
pydantic-yaml-0,
|
||||
pyyaml,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
snap-helpers,
|
||||
stdenv,
|
||||
pygit2,
|
||||
pyfakefs,
|
||||
pytestCheckHook,
|
||||
pygit2,
|
||||
pytest-check,
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
pyyaml,
|
||||
responses,
|
||||
hypothesis,
|
||||
setuptools-scm,
|
||||
setuptools,
|
||||
snap-helpers,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "craft-application";
|
||||
version = "2.6.0";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "canonical";
|
||||
repo = "craft-application";
|
||||
|
@ -45,12 +47,12 @@ buildPythonPackage rec {
|
|||
--replace-fail "setuptools==69.4.0" "setuptools"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
craft-archives
|
||||
craft-cli
|
||||
craft-grammar
|
||||
|
@ -62,8 +64,6 @@ buildPythonPackage rec {
|
|||
snap-helpers
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "craft_application" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
git
|
||||
hypothesis
|
||||
|
@ -88,6 +88,8 @@ buildPythonPackage rec {
|
|||
--replace-fail "os_utils.OsRelease()" "os_utils.OsRelease(os_release_file='$HOME/os-release')"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "craft_application" ];
|
||||
|
||||
pytestFlagsArray = [ "tests/unit" ];
|
||||
|
||||
disabledTests = [
|
||||
|
|
Loading…
Reference in New Issue