nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools-scm,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "paragraphs";
12 version = "1.0.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ShayHill";
17 repo = "paragraphs";
18 tag = version;
19 hash = "sha256-u5/oNOCLdvfQVEIEpraeNLjTUoh3eJQ6qSExnkzTmNw=";
20 };
21
22 build-system = [
23 setuptools
24 setuptools-scm
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [
30 "paragraphs"
31 ];
32
33 meta = {
34 description = "Module to incorporate long strings";
35 homepage = "https://github.com/ShayHill/paragraphs";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ fab ];
38 };
39}