mirror of
https://github.com/Mic92/nix-update.git
synced 2024-09-19 06:17:14 +03:00
fix bitbucket test
This commit is contained in:
parent
220d547109
commit
1f1c1ab1ec
@ -36,8 +36,8 @@ def test_version(helpers: conftest.Helpers) -> None:
|
|||||||
print(commit)
|
print(commit)
|
||||||
assert version in commit
|
assert version in commit
|
||||||
assert "bitbucket" in commit
|
assert "bitbucket" in commit
|
||||||
assert "/jongsoftdev/youless-python-bridge/branches/compare/" in commit
|
assert "/nielsenb/aniso8601/branches/compare/" in commit
|
||||||
assert "%0D1.0" in commit
|
assert "%0Dv9.0.0" in commit
|
||||||
|
|
||||||
|
|
||||||
# integration test for bitbucket snapshots
|
# integration test for bitbucket snapshots
|
||||||
@ -76,5 +76,5 @@ def test_snapshot(helpers: conftest.Helpers) -> None:
|
|||||||
print(commit)
|
print(commit)
|
||||||
assert version in commit
|
assert version in commit
|
||||||
assert "bitbucket" in commit
|
assert "bitbucket" in commit
|
||||||
assert "/jongsoftdev/youless-python-bridge/branches/compare/" in commit
|
assert "/nielsenb/aniso8601/branches/compare/" in commit
|
||||||
assert "%0Dc04342ef36dd5ba8f7d9b9fce2fb4926ef401fd5" in commit
|
assert "%0D55b1b849a57341a303ae47eb67c7ecf8c283b7f8" in commit
|
||||||
|
@ -3,19 +3,19 @@
|
|||||||
let
|
let
|
||||||
# Why this package? No reason, I just found a small package that uses tags
|
# Why this package? No reason, I just found a small package that uses tags
|
||||||
# for release by grepping through nixpkgs for fetchFromBitbucket.
|
# for release by grepping through nixpkgs for fetchFromBitbucket.
|
||||||
owner = "jongsoftdev";
|
owner = "nielsenb";
|
||||||
repo = "youless-python-bridge";
|
repo = "aniso8601";
|
||||||
# As of 2023-11-22, latest version is 1.0.1, so we will be testing that it
|
# As of 2024-04-23, latest version is 9.0.1, so we will be testing that it
|
||||||
# finds a version greater than 1.0. The rev from 2022-10-01 is an untagged
|
# finds a version greater than 9.0.0. The rev from 2021-03-02 is an untagged
|
||||||
# commit.
|
# commit.
|
||||||
version =
|
version =
|
||||||
if (isSnapshot)
|
if (isSnapshot)
|
||||||
then "0.16-unstable-2022-10-01"
|
then "0.16-unstable-2022-10-01"
|
||||||
else "1.0";
|
else "9.0.0";
|
||||||
rev =
|
rev =
|
||||||
if (isSnapshot)
|
if (isSnapshot)
|
||||||
then "c04342ef36dd5ba8f7d9b9fce2fb4926ef401fd5"
|
then "55b1b849a57341a303ae47eb67c7ecf8c283b7f8"
|
||||||
else "1.0";
|
else "v9.0.0";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = repo;
|
pname = repo;
|
||||||
|
Loading…
Reference in New Issue
Block a user