Files
nixpkgs/pkgs/development/python-modules/milksnake/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
907 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
cffi,
}:
buildPythonPackage rec {
pname = "milksnake";
version = "0.1.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "120nprd8lqis7x7zy72536gk2j68f7gxm8gffmx8k4ygifvl7kfz";
};
patches = [
(fetchpatch {
name = "fix-regex-python-311.patch";
url = "https://github.com/getsentry/milksnake/commit/421cc1ffab4d76d01366240c087ffb30d63b744c.diff";
hash = "sha256-U/C4CCX8SEOzVXNpOf4hVy2V3Lh6fUrFkz5z+h191C8=";
})
];
propagatedBuildInputs = [ cffi ];
# tests rely on pip/venv
doCheck = false;
meta = {
description = "Python library that extends setuptools for binary extensions";
homepage = "https://github.com/getsentry/milksnake";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ matthiasbeyer ];
};
}