mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 22:07:51 +00:00
568e1b5317
The built-in nixpkgs `buildPythonPackage` doesn't do metadata discovery so we have to duplicate a lot of the package metadata. However, mach-nix is unmaintained and incompatible with newer versions of nixpkgs.
23 lines
526 B
Nix
23 lines
526 B
Nix
{ lib, fetchPypi, buildPythonPackage, rustPlatform }:
|
|
buildPythonPackage rec {
|
|
pname = "pycddl";
|
|
version = "0.4.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-w0CGbPeiXyS74HqZXyiXhvaAMUaIj5onwjl9gWKAjqY=";
|
|
};
|
|
|
|
nativeBuildInputs = with rustPlatform; [
|
|
maturinBuildHook
|
|
cargoSetupHook
|
|
];
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-g96eeaqN9taPED4u+UKUcoitf5aTGFrW2/TOHoHEVHs=";
|
|
};
|
|
}
|