listenbrainz-content-resolver: use correct version
This commit is contained in:
parent
5f1bdf496a
commit
ac29bf917a
|
@ -8,7 +8,6 @@
|
||||||
, regex
|
, regex
|
||||||
, scikit-learn
|
, scikit-learn
|
||||||
, unidecode
|
, unidecode
|
||||||
, pythonRelaxDepsHook
|
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -37,23 +36,21 @@ let
|
||||||
in
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ListenBrainz-Content-Resolver";
|
pname = "ListenBrainz-Content-Resolver";
|
||||||
# FIXME
|
version = "unstable-2023-10-03";
|
||||||
# This should actually reflect the real version.
|
|
||||||
# As there currently are no tagged versions,
|
|
||||||
# this needs to be forged,
|
|
||||||
# because pythonRelaxDepsHook has problems with unstable-YYYY-MM-DD as a version.
|
|
||||||
version = "1.0.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "metabrainz";
|
owner = "metabrainz";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "6caa43df1d17a974ae27a91f1aaf663952cf0ed9";
|
rev = "6caa43df1d17a974ae27a91f1aaf663952cf0ed9";
|
||||||
sha256 = "0000000000000000000000000000000000000000000000000000";
|
sha256 = "sha256-m11buP7AhpLXmIPK9z3r3Gtr8L6A5MAt+SyuIT5bK9Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Make model discoverable by setuptools’ find_packages
|
# Make model discoverable by setuptools’ find_packages
|
||||||
touch lb_content_resolver/model/__init__.py
|
touch lb_content_resolver/model/__init__.py
|
||||||
|
|
||||||
|
# pythonRelaxDepsHook does not work when this packages’ version is set to unstable-YYYY-MM-DD
|
||||||
|
sed -i setup.py -e 's/"\([^=]*\)==[^"]*"/"\1"/g'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -67,12 +64,9 @@ buildPythonPackage rec {
|
||||||
unidecode
|
unidecode
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pythonRelaxDepsHook
|
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonRelaxDeps = true;
|
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
Loading…
Reference in a new issue