mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 11:00:19 +03:00
python3.pkgs.clr-loader: add build dependencies
Once we add setuptools-scm, we no longer need the patch that changes the version number in pyproject.toml.
This commit is contained in:
parent
809db2e8e5
commit
9e742472af
@ -4,6 +4,8 @@
|
|||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, dotnetCorePackages
|
, dotnetCorePackages
|
||||||
, setuptools
|
, setuptools
|
||||||
|
, setuptools-scm
|
||||||
|
, wheel
|
||||||
, buildDotnetModule
|
, buildDotnetModule
|
||||||
, cffi
|
, cffi
|
||||||
}:
|
}:
|
||||||
@ -14,7 +16,7 @@ let
|
|||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "clr_loader";
|
pname = "clr_loader";
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "sha256-gu1ftlRynRT9iCludLtrhOss+5dv9LfUnU5En9eKIms=";
|
hash = "sha256-gu1ftlRynRT9iCludLtrhOss+5dv9LfUnU5En9eKIms=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# This buildDotnetModule is used only to get nuget sources, the actual
|
# This buildDotnetModule is used only to get nuget sources, the actual
|
||||||
@ -30,13 +32,10 @@ buildPythonPackage {
|
|||||||
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace 'dynamic = ["version"]' 'version = "${version}"'
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
|
setuptools-scm
|
||||||
|
wheel
|
||||||
dotnetCorePackages.sdk_6_0
|
dotnetCorePackages.sdk_6_0
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user