9 # native darwin dependencies
18 buildPythonPackage rec {
23 src = fetchFromGitHub {
24 owner = "Stranger6667";
26 rev = "python-v${version}";
27 hash = "sha256-oBAJv/hAz/itT2WakIw/1X1NvOHX108NoeS6V7k+aG8=";
32 ln -s ${./Cargo.lock} Cargo.lock
35 # call `cargo build --release` in bindings/python and copy the
37 cargoDeps = rustPlatform.fetchCargoTarball {
41 ln -s ${./Cargo.lock} Cargo.lock
43 name = "${pname}-${version}";
44 hash = "sha256-SFG1nsP4+I0zH8VeyL1eeaTx0tHNIvmx6M0cko0pqIA=";
48 rustPlatform.cargoSetupHook
49 rustPlatform.maturinBuildHook
52 buildInputs = lib.optionals stdenv.isDarwin [
57 pythonImportsCheck = [
67 description = "Inline CSS into style attributes";
68 homepage = "https://github.com/Stranger6667/css-inline";
69 changelog = "https://github.com/Stranger6667/css-inline/blob/${src.rev}/CHANGELOG.md";
70 license = licenses.mit;
71 maintainers = with maintainers; [ hexa ];