summaryrefslogtreecommitdiffstats
path: root/pkgs/development
diff options
context:
space:
mode:
authorBruno BELANYI <bruno@belanyi.fr>2022-04-18 14:37:03 +0200
committerBruno BELANYI <bruno@belanyi.fr>2022-12-23 14:31:12 +0100
commitecee71479aa155d0a0c8ab1d6a4af1ed68709c1a (patch)
treefadfaf46d51be81e7d48e92df11584da33555c9e /pkgs/development
parentfb4c418816ae8e42af8d26fb068ef630c2fdf620 (diff)
python3Packages.beancount-black: init at 0.1.13
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/beancount-black/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/beancount-black/default.nix b/pkgs/development/python-modules/beancount-black/default.nix
new file mode 100644
index 000000000000..81bc8bc05822
--- /dev/null
+++ b/pkgs/development/python-modules/beancount-black/default.nix
@@ -0,0 +1,48 @@
+{ lib
+, fetchFromGitHub
+, buildPythonPackage
+, pythonOlder
+, beancount-parser
+, click
+, poetry-core
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "beancount-black";
+ version = "0.1.13";
+
+ disabled = pythonOlder "3.9";
+ format = "pyproject";
+
+ src = fetchFromGitHub {
+ owner = "LaunchPlatform";
+ repo = "beancount-black";
+ rev = version;
+ sha256 = "sha256-jhcPR+5+e8d9cbcXC//xuBwmZ14xtXNlYtmH5yNSU0E=";
+ };
+
+ buildInputs = [
+ poetry-core
+ ];
+
+ propagatedBuildInputs = [
+ beancount-parser
+ click
+ ];
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [
+ "beancount_black"
+ ];
+
+ meta = with lib; {
+ description = "Opinioned code formatter for Beancount";
+ homepage = "https://github.com/LaunchPlatform/beancount-black/";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ ambroisie ];
+ };
+}