Skip to content

Commit

Permalink
Merge pull request #224665 from flokli/picobox-3.0.0
Browse files Browse the repository at this point in the history
python3.pkgs.picobox: 2.2.0 -> 3.0.0
  • Loading branch information
Lassulus authored Apr 4, 2023
2 parents dfe6967 + d273fa8 commit d40f987
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions pkgs/development/python-modules/picobox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,32 @@
, fetchFromGitHub
, fetchpatch
, flask
, hatchling
, hatch-vcs
, isPy27
, pytestCheckHook
, pythonAtLeast
, setuptools-scm
}:

buildPythonPackage rec {
pname = "picobox";
version = "2.2.0";
version = "3.0.0";

format = "pyproject";

disabled = isPy27;

src = fetchFromGitHub {
owner = "ikalnytskyi";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-B2A8GMhBFU/mb/JiiqtP+HvpPj5FYwaYO3gQN2QI6z0=";
hash = "sha256-LQiSurL+eFRJ9iQheoo66o44BlfBtAatk8deuMFROcc=";
};

patches = [
(fetchpatch {
# already in master, but no new release yet.
# https://github.com/ikalnytskyi/picobox/issues/55
url = "https://github.com/ikalnytskyi/picobox/commit/1fcc4a0c26a7cd50ee3ef6694139177b5dfb2be0.patch";
hash = "sha256-/NIEzTFlZ5wG7jHT/YdySYoxT/UhSk29Up9/VqjG/jg=";
includes = [
"tests/test_box.py"
"tests/test_stack.py"
];
})
];

SETUPTOOLS_SCM_PRETEND_VERSION = version;

nativeBuildInputs = [
setuptools-scm
hatchling
hatch-vcs
];

nativeCheckInputs = [
Expand Down

0 comments on commit d40f987

Please sign in to comment.