9 # native darwin dependencies
19 buildPythonPackage rec {
24 src = fetchFromGitHub {
25 owner = "Stranger6667";
27 rev = "python-v${version}";
28 hash = "sha256-hhjeOr7EJc4Tmn/eQ1vF0xChSIlgfSmtqi6s7WCUq00=";
33 ln -s ${./Cargo.lock} Cargo.lock
36 # call `cargo build --release` in bindings/python and copy the
38 cargoDeps = rustPlatform.fetchCargoTarball {
42 ln -s ${./Cargo.lock} Cargo.lock
44 name = "${pname}-${version}";
45 hash = "sha256-noYBSwCfdpuwb55toyx4K/16Z4A0NWjnMuzwTi5g8AU=";
49 rustPlatform.cargoSetupHook
50 rustPlatform.maturinBuildHook
53 buildInputs = lib.optionals stdenv.isDarwin [
59 pythonImportsCheck = [
69 # fails to connect to local server
70 "test_remote_stylesheet"
71 ] ++ lib.optionals (stdenv.isDarwin) [
72 # pyo3_runtime.PanicException: event loop thread panicked
77 description = "Inline CSS into style attributes";
78 homepage = "https://github.com/Stranger6667/css-inline";
79 changelog = "https://github.com/Stranger6667/css-inline/blob/${src.rev}/CHANGELOG.md";
80 license = licenses.mit;
81 maintainers = with maintainers; [ hexa ];