Files
nixpkgs/pkgs/development/python-modules/coreapi/default.nix
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

50 lines
888 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonAtLeast,
django,
coreschema,
itypes,
uritemplate,
requests,
pytest,
}:
buildPythonPackage rec {
pname = "coreapi";
version = "2.3.3";
format = "setuptools";
# cgi module was removed in 3.13, upstream repo archived since 2019
disabled = pythonAtLeast "3.13";
src = fetchFromGitHub {
repo = "python-client";
owner = "core-api";
rev = version;
sha256 = "1c6chm3q3hyn8fmjv23qgc79ai1kr3xvrrkp4clbqkssn10k7mcw";
};
propagatedBuildInputs = [
django
coreschema
itypes
uritemplate
requests
];
nativeCheckInputs = [ pytest ];
checkPhase = ''
cd ./tests
pytest
'';
meta = {
description = "Python client library for Core API";
homepage = "https://github.com/core-api/python-client";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}